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.
lua
shared_scripts {
'@jo_libs/init.lua'
}- Add the Emit module inside the
fxmanifest.lua(in lowercase)
lua
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