Skip to content

Instantly share code, notes, and snippets.

@kayotimoteo
Created February 21, 2022 01:43
Show Gist options
  • Save kayotimoteo/fbf49b2e2bf1cff49c7237e7b4630cdb to your computer and use it in GitHub Desktop.
Save kayotimoteo/fbf49b2e2bf1cff49c7237e7b4630cdb to your computer and use it in GitHub Desktop.
Citizen.CreateThread(function()
while true do
local idle = 1000
if tk then
idle = 1
local players = vRP.nearestPlayers(40)
if players then
for serverId, distance in pairs(players) do
MumbleSetVolumeOverrideByServerId(serverId, 30.0)
MumbleAddVoiceChannelListen(serverId)
end
end
end
Citizen.Wait(idle)
end
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment