From 1dd7f4047cd9fb46ae7a4fd1a7b88fdb5b78ba9a Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 7 Nov 2019 21:27:23 +0000 Subject: [PATCH] Updated resource wait time and changed sorting function value --- cl_radar.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cl_radar.lua b/cl_radar.lua index 1f321ae..9063c87 100644 --- a/cl_radar.lua +++ b/cl_radar.lua @@ -15,7 +15,7 @@ local type = type ------------------------------------------------------------------------]]-- Citizen.CreateThread( function() -- Wait for a short period of time to give the resource time to load - Citizen.Wait( 5000 ) + Citizen.Wait( 10000 ) -- Get the name of the resource, for example the default name is 'wk_wrs2' local resourceName = GetCurrentResourceName() @@ -98,13 +98,13 @@ RADAR.sorting = { func = function( a, b ) if ( a.size > b.size + 2.0 ) then return true - elseif ( a.size - b.size <= 2.0 ) then + elseif ( a.size - b.size <= 1.0 ) then return false end return a.speed > b.speed end - } + } } --[[------------------------------------------------------------------------