Emit
Emit is a module to optimize your trigger events server <> client. It's especially useful for large data or sending data to specific players.
Include Emit in your script
- To use the Emit library, just add the initiator as a shared script inside of your
fxmanifest.luafile.
shared_scripts {
'@jo_libs/init.lua'
}
- Add the Emit module inside the
fxmanifest.lua(in lowercase)
jo_libs {
'emit',
}
You can now use the library inside of your resource with the jo.emit global variable.
Functions
Documentation for the Client side.
Documentation for the Server side