Skip to content

Commit

Permalink
Fixed a bug that caused the fast speeds to not be accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfKnight98 committed Mar 14, 2020
1 parent 151cb20 commit f30115d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cl_radar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,7 @@ function RADAR:GetVehiclesForAntenna()
for k, v in pairs( vehs[ant] ) do
-- When we grab a vehicle for the fastest section, as it is like how the real system works, there are a few
-- additional checks that have to be made
if ( self:CheckVehicleDataFitsMode( ant, v.rayType ) and v.veh ~= temp.veh and v.size < temp.size and v.speed + 1.0 > temp.speed ) then
if ( self:CheckVehicleDataFitsMode( ant, v.rayType ) and v.veh ~= temp.veh and v.size < temp.size and v.speed > temp.speed + 1.0 ) then
-- Set the result for the current antenna
results[ant][2] = v
break
Expand Down
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ game "gta5"
name "Wraith ARS 2X"
description "Police radar and plate reader system for FiveM"
author "WolfKnight"
version "1.1.0"
version "1.1.1"

-- Include the files
files {
Expand Down

0 comments on commit f30115d

Please sign in to comment.