https://open.mp logo
Docs
Join the conversationJoin Discord
Channels
general
general-show-off
opemp-dev
open-mp-server-beta
openmp-samp-help
pawn-help
sa-show-off
samp-and-sa
samp-android
support-forum
Powered by Linen
general
  • c

    cool-battery-88185

    12/12/2022, 3:53 PM
    in omp-node repository there's native code for communicating between nodejs and omp-ipc (because nodejs's nanomsg library is super old) then u just use provided functions in nodejs and talk to main process
  • c

    cool-battery-88185

    12/12/2022, 3:53 PM
    adding all scripting apis
  • c

    cool-battery-88185

    12/12/2022, 3:53 PM
    I only added checkpoints, actors, and pickups
  • g

    gifted-butcher-80601

    12/12/2022, 3:53 PM
  • b

    brief-printer-42343

    12/12/2022, 3:53 PM
    nice one
  • g

    gifted-butcher-80601

    12/12/2022, 3:54 PM
    wen omp-bun
  • a

    average-piano-4244

    12/12/2022, 3:55 PM
    any eta when client will be released?
  • q

    quiet-eye-86385

    12/12/2022, 3:55 PM
    2027
  • a

    average-piano-4244

    12/12/2022, 3:55 PM
    bruh
  • i

    important-activity-24017

    12/12/2022, 3:55 PM
    Russians already have the client bro wtf
  • b

    breezy-truck-76369

    12/12/2022, 3:55 PM
    anything that doesn't require me to be a virgin and know c++?
  • c

    cool-battery-88185

    12/12/2022, 3:55 PM
    and you can do it like this
    js
    const createActor = (modelid, { x, y, z }, rot) => {
        const result = ompaddon.sendMessageSync(JSON.stringify({
            name: "Actor_Create",
            params: {
                modelid: modelid,
                x: x,
                y: y,
                z: z,
                rot: rot,
            }
        }));
    
        if (result.ret_value.error) {
            throw result.ret_value.error;
        }
        else {
            return result.ret_value;
        }
    }
  • q

    quiet-eye-86385

    12/12/2022, 3:56 PM
    json
  • c

    cool-battery-88185

    12/12/2022, 3:56 PM
    well even if I finish server side I still need to make a js library for it to use, you can't use raw message calls
  • g

    gifted-butcher-80601

    12/12/2022, 3:56 PM
    is it all based on strings?
  • g

    gifted-butcher-80601

    12/12/2022, 3:56 PM
  • b

    brief-printer-42343

    12/12/2022, 3:56 PM
    looks good bro 👍
  • c

    cool-battery-88185

    12/12/2022, 3:56 PM
    (you can but you know what I mean)
  • b

    breezy-truck-76369

    12/12/2022, 3:56 PM
    yeah yeah
  • b

    breezy-truck-76369

    12/12/2022, 3:57 PM
    we'd use typescript anyway so could always contribute with something there
  • q

    quiet-eye-86385

    12/12/2022, 3:57 PM
    obvs there will be types
  • q

    quiet-eye-86385

    12/12/2022, 3:57 PM
    lmao
  • b

    breezy-truck-76369

    12/12/2022, 3:57 PM
    wanna point out where i said there wouldn't be
  • c

    cool-battery-88185

    12/12/2022, 3:57 PM
    you like make the whole thing in TS and use tsc to export different distributions and make an npm package with it
  • c

    cool-battery-88185

    12/12/2022, 3:58 PM
    json is the only structured data I can use to have support in all languages
  • c

    cool-battery-88185

    12/12/2022, 3:58 PM
    unless someone wants to make an interpreter for every language and have different structure declaration for every IPC call
  • c

    cool-battery-88185

    12/12/2022, 3:58 PM
  • c

    cool-battery-88185

    12/12/2022, 3:59 PM
    tho its not as bad as you think most of execution time still relies on ipc call
  • q

    quiet-eye-86385

    12/12/2022, 3:59 PM
    why don't we focus on relevant things
  • c

    cool-battery-88185

    12/12/2022, 3:59 PM
    like client?
Powered by Linen
Title
c

cool-battery-88185

12/12/2022, 3:59 PM
like client?
View count: 1