From the reference libraryRedM

examples

jo_libs/modules/emit/autodoc/slots/examples.md

examples

Example

print(jo.emit.isEventInProgress('YourEventName'))
-- Expected outfit : `true` if the event is not fully received yet.

Example

local data = "MyData"
jo.emit.triggerServer('YourEventName', data)

Example

local data = {}
for i = 1, 100000 do
  data[i] = i
end
jo.emit.triggerServer.latent("YourEventName", data)

Example

jo.emit.updateBps(3000)

Example

local source = 5
local data = "MyData"
jo.emit.triggerClient('YourEventName', source, data)
--OR--
local sources = { 3, 4, 5, 13 } --list of players
local data = "MyData"
jo.emit.triggerClient('YourEventName', sources, data)

Example

local source = 5
local data = {}
for i = 1, 100000 do
  data[i] = i
end
jo.emit.triggerClient.latent('YourEventName', source, data)
--OR--
local sources = { 3, 4, 5, 13 } --list of players
local data = {}
for i = 1, 100000 do
  data[i] = i
end
jo.emit.triggerClient.latent('YourEventName', sources, data)

Back to documentation