Update cl_radar.lua

This commit is contained in:
Dan
2019-11-29 09:50:06 +00:00
parent 962340d4e9
commit 8f3b07b0a2

View File

@@ -713,7 +713,6 @@ function RADAR:Main()
end
-- Work out what has to be sent
-- need to find a way to automate this in a loop
local av = self:GetActiveVehicles()
data.antennas = { ["front"] = nil, ["rear"] = nil }
@@ -732,34 +731,6 @@ function RADAR:Main()
end
end
--[[if ( self:IsAntennaTransmitting( "front" ) ) then
if ( av["front"][1] ~= nil ) then
test["front"].speed = UTIL:FormatSpeed( self:GetVehSpeedFormatted( av["front"][1].speed ) )
else
test["front"].speed = "¦¦¦"
end
if ( av["front"][2] ~= nil ) then
test["front"].fast = UTIL:FormatSpeed( self:GetVehSpeedFormatted( av["front"][2].speed ) )
else
test["front"].fast = "¦¦¦"
end
end
if ( self:IsAntennaTransmitting( "rear" ) ) then
if ( av["rear"][1] ~= nil ) then
test["rear"].speed = UTIL:FormatSpeed( self:GetVehSpeedFormatted( av["rear"][1].speed ) )
else
test["rear"].speed = "¦¦¦"
end
if ( av["rear"][2] ~= nil ) then
test["rear"].fast = UTIL:FormatSpeed( self:GetVehSpeedFormatted( av["rear"][2].speed ) )
else
test["rear"].fast = "¦¦¦"
end
end]]
-- Send the update to the NUI side
SendNUIMessage( { _type = "update", speed = data.patrolSpeed, antennas = data.antennas } )