AmyrAhmady / samp-node

a SA-MP plugin to run nodejs scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help

XanderID opened this issue · comments

I've tried OnGameModeInit console.log but no logs, neither in server-log nor in samp-node.log, Can you provide an example of a script file folder? for me to learn.

Config File: {
"entry_file": "./SampJS/index.js",
"node_flags": []
}

Index.js File:
samp.on("OnGameModeInit", () => {
console.log("Testing")
return 8;
});

or I test with samp.on("EVENT_GAME_MODE_INIT"

is not work help pls :).

and when i tried use fs package and write file, file is not created

That work now ty, i trying not using Folder.