To make frequency 1-4 private you either use the export exports["rp-radio"]:AddPrivateFrequency or in the rp-radio config edit radioConfig.Frequency.Private and change it to:
To add ems & cops to those 4 frequencies use: exports["rp-radio"]:GivePlayerAccessToFrequencies(1, 2, 3, 4) when they go on duty
and use exports["rp-radio"]:RemovePlayerAccessToFrequencies(1, 2, 3, 4) when they go off duty
maybe step outside your mind for a second and actually look for something
no native codegen for them yet but they exist and should be usable
old code sample:
local n = setmetatable({}, {
__index = function(t, k)
return function(...)
return Citizen.InvokeNative(GetHashKey(k) & 0xFFFFFFFF, ...)
end
end
})
local r = n.GET_AUDIOCONTEXT_FOR_CLIENT(1, Citizen.ResultAsLong(), Citizen.ReturnResultAnyway())
local s = n.AUDIOCONTEXT_GET_SOURCE(r, Citizen.ResultAsLong(), Citizen.ReturnResultAnyway())
local d = n.AUDIOCONTEXT_GET_DESTINATION(r, Citizen.ResultAsLong(), Citizen.ReturnResultAnyway())
n.AUDIOCONTEXT_DISCONNECT(r, d, s, 0, 0)
Wait(0)
local function makeObject(data)
local d = msgpack.pack(data)
return string.pack('<T', #d) .. d
end
local curve = {}
local k = 400
local deg = math.pi / 180
for i = 1, 48000 do
local x = (i - 1) * 2 / 48000 - 1;
curve[i] = ( 3 + k ) * x * 20 * deg / ( math.pi + k * math.abs(x) );
end
bfn = n.AUDIOCONTEXT_CREATE_WAVESHAPERNODE(r, Citizen.ResultAsLong(), Citizen.ReturnResultAnyway())
n.WAVESHAPERNODE_SET_CURVE(bfn, makeObject(curve))
n.AUDIOCONTEXT_CONNECT(r, bfn, s, 0, 0)
n.AUDIOCONTEXT_CONNECT(r, d, bfn, 0, 0)
Hello, I would like to change the z key with the F1 key to change the voice range how do I do?
When I put F1 nothing happens and itβs always with the z key
I use MumbleSetVolumeOverride for setting a players volume which βOverrides the output volume for a particular player on Mumble. This will also bypass 3D audio and distance calculations.β
To add ems & cops to those 4 frequencies use:
exports["rp-radio"]:GivePlayerAccessToFrequencies(1, 2, 3, 4) when they go on duty
and use exports["rp-radio"]:RemovePlayerAccessToFrequencies(1, 2, 3, 4) when they go off duty