nfgs

this is the npm module used for interacting with a gmod server, this library relies on the subprocess plugin for gmod server, found here https://github.com/cramt/gmsv_subprocess_plugin

Usage no npm install needed!

<script type="module">
  import nfgs from 'https://cdn.skypack.dev/nfgs';
</script>

README

node for gmod server

this is the npm module used for interacting with a gmod server, this library relies on the subprocess plugin for gmod server, found here https://github.com/cramt/gmsv_subprocess_plugin

the lua part of this can be found in lua/nfgs.lua

import { NFGSHandler } from "nfgs.js"
let i = 0;
NFGSHandler.eventHandler.on("add", data => {
    i += data.toAdd;
})
function main() {
    NFGSHandler.send("hello", { index: i++ })
    setTimeout(main, 1000)
}
main();