Shared Exports
Make sure to use the exports correctly and pass the arguments properly to ensure the resource works as intended
GetJobRadioFrequencies
Returns all frequencies from a job, if argument is nil, will return all frequencies config
exports['ikerdrgz-radio']:GetJobRadioFrequencies(job / nil)
Statebag Handler
Handles when player joins/leaves a frequency
AddStateBagChangeHandler('unit', ('player:%s'):format(cache.serverId), function(_, _, value)
-- print(value)
end)
Last updated