Removed old stage code from RADAR:Main(), changed thread wait

This commit is contained in:
Dan
2019-12-03 14:48:44 +00:00
parent 4ae2fe41b1
commit 95fd11ed21

View File

@@ -926,7 +926,7 @@ Citizen.CreateThread( function()
while ( true ) do
RADAR:RunDynamicThreadWaitCheck()
Citizen.Wait( 2500 )
Citizen.Wait( 2000 )
end
end )
@@ -958,20 +958,6 @@ end )
function RADAR:Main()
-- Check to make sure the player is in the driver's seat, and also that the vehicle has a class of VC_EMERGENCY (18)
if ( DoesEntityExist( PLY.veh ) and PLY.inDriverSeat and PLY.vehClassValid and self:CanPerformMainTask() ) then
-- local plyVehPos = GetEntityCoords( PLY.veh )
-- First stage of the radar - get all of the vehicles hit by the radar
--if ( self:GetRadarStage() == 0 ) then
--[[if ( self:GetRayTraceState() == 0 ) then
local vehs = self:GetVehiclePool()
self:ResetCapturedVehicles()
self:ResetRayTraceState()
self:CreateRayThreads( PLY.veh, vehs )
elseif ( self:GetRayTraceState() == self:GetNumOfRays() ) then
self:IncreaseRadarStage()]]
--end
--elseif ( self:GetRadarStage() == 1 ) then
local data = {}
-- Get the player's vehicle speed
@@ -1049,7 +1035,6 @@ function RADAR:Main()
self:ResetTempVehicleIDs()
self:ResetRadarStage()
self:ResetRayTraceState()
--end
end
end