dockfries / infernus

Node.js library for scripting Open Multiplayer.
https://dockfries.github.io/infernus/
MIT License
21 stars 2 forks source link

Why you can use "samp" directly instead of importing #3

Closed dockfries closed 2 years ago

dockfries commented 2 years ago

Since our mounted samp-node plugin automatically injects samp variables and all event constants into node globals at runtime, we can call it directly. We can see the global variables via console.log(globals);