AmyrAhmady / samp-node

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

samp-node

samp-node is a SA-MP plugin that allows you to run Node.js, meaning you can code in JS/TS instead of pawn.


Todo:

Download

You can always find latest builds here\ But if you are looking for a stable version (or using sampctl), please visit here

Node version

Currently samp-node uses Node.js v16.

Tips

You should transpile your JS into commonjs to avoid issues. \ It's recommended you use TypeScript and setup a tsconfig that extends @tsconfig/node16.

Type definitions for TypeScript

If you're using TypeScript then take a look at this repoistory: https://github.com/samp-dev/node \ Instructions can be found there on how to install and use them. \ Special thanks to pkfln (peek).

Credits