AmyrAhmady / samp-node

a SA-MP plugin to run nodejs scripts
72 stars 8 forks source link

Usage readme and compatibility #33

Open zivanovica opened 5 months ago

zivanovica commented 5 months ago

Hello- does this plugin works with new OpenSAMP? If so- are there any examples on where to put stuff, how to configure etc?

Using TS I did a simple snippet- but don't know how to run it

/// <reference path="node_modules/@sa-mp/node/@types/index.d.ts" />
samp.on(EVENT_GAME_MODE_INIT, () => {
    console.log('Game mode is loaded - from sampjs :)');
});
dockfries commented 4 months ago

If you have basic typescript and native sa-mp development experience and are willing to take some risks, you can try my library infernus.