Updated resource wait time and changed sorting function value

This commit is contained in:
Dan
2019-11-07 21:27:23 +00:00
parent d1159e8c2c
commit 1dd7f4047c

View File

@@ -15,7 +15,7 @@ local type = type
------------------------------------------------------------------------]]-- ------------------------------------------------------------------------]]--
Citizen.CreateThread( function() Citizen.CreateThread( function()
-- Wait for a short period of time to give the resource time to load -- 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' -- Get the name of the resource, for example the default name is 'wk_wrs2'
local resourceName = GetCurrentResourceName() local resourceName = GetCurrentResourceName()
@@ -98,13 +98,13 @@ RADAR.sorting = {
func = function( a, b ) func = function( a, b )
if ( a.size > b.size + 2.0 ) then if ( a.size > b.size + 2.0 ) then
return true return true
elseif ( a.size - b.size <= 2.0 ) then elseif ( a.size - b.size <= 1.0 ) then
return false return false
end end
return a.speed > b.speed return a.speed > b.speed
end end
} }
} }
--[[------------------------------------------------------------------------ --[[------------------------------------------------------------------------