feat: only allow fast lock for driver

This commit is contained in:
Dan
2021-03-18 20:15:22 +00:00
parent 07b1311529
commit 224685727f

View File

@@ -1773,7 +1773,10 @@ function RADAR:Main()
-- Make sure the speed is larger than the limit, and that there isn't already a locked speed -- Make sure the speed is larger than the limit, and that there isn't already a locked speed
if ( self:IsFastLockEnabled() and convertedSpeed > self:GetFastLimit() and not self:IsAntennaSpeedLocked( ant ) ) then if ( self:IsFastLockEnabled() and convertedSpeed > self:GetFastLimit() and not self:IsAntennaSpeedLocked( ant ) ) then
if ( ( self:OnlyLockFastPlayers() and UTIL:IsPlayerInVeh( av[ant][i].veh ) ) or not self:OnlyLockFastPlayers() ) then if ( ( self:OnlyLockFastPlayers() and UTIL:IsPlayerInVeh( av[ant][i].veh ) ) or not self:OnlyLockFastPlayers() ) then
self:LockAntennaSpeed( ant ) if ( PLY:IsDriver() ) then
self:LockAntennaSpeed( ant, nil, false )
SYNC:LockAntennaSpeed( ant, RADAR:GetAntennaDataPacket( ant ) )
end
end end
end end
end end