TRIGGERS/EXPORTS Lua code examples for Client Side

TriggerEvent("sfdoj:tabletopen") -- open police tablet
TriggerEvent("nuifix") -- if the NUI breaks.

EXPORTS Lua code examples for Server Side

-- return table with data (source, fullname, phone_number, grade) 

In your radio script, add export so that the tablet shows data on which radio the officer is on

local source = source
local channel = 1 -- for e.g.
exports["sfdoj"]:setChannelRadio(source, channel)

Last updated