add Frequency in config like this
police = {
job = 'police',
offjob = 'offpolice',
Frequency = 2,
Pos = { x = -704.22430419922, y = 620.40441894531, z = 155.24028015137 },
Size = { x = 1.5, y = 1.5, z = 1.5 },
},
add this under TriggerServerEvent('esx_duty:toggleduty')
in line 127
if offdutyjobsinfo[playerjob] then
if v.Frequency then
exports["rp-radio"]:GivePlayerAccessToFrequency(v.Frequency)
end
else
if v.Frequency then
exports["rp-radio"]:RemovePlayerAccessToFrequency(v.Frequency)
end
end