Created
February 21, 2022 01:43
-
-
Save kayotimoteo/fbf49b2e2bf1cff49c7237e7b4630cdb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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