so, trying to give access to a certain radio frequency when a staff member goes onduty using [Release] Staff On Duty (Automated)
so i have it when someone does /staffduty it does
exports["rp-radio"]:GivePlayerAccessToFrequency(800)
but when i actually do /staffduty it just says
SCRIPT ERROR: citizen:/scripting/lua/scheduler.lua:935: No such export GivePlayerAccessToFrequency in resource rp-radio
any ideas?

EDIT: Before anyone asks yes the resource is called rp-radio

Final Edit: wont work as i am trying to call the export in a server.lua but ill keep trying