From the reference libraryRedM

Emit

jo_libs/modules/emit/index.md

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

  1. To use the Emit library, just add the initiator as a shared script inside of your fxmanifest.lua file.
shared_scripts {
  '@jo_libs/init.lua'
}

  1. 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

Back to documentation