mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 08:26:27 +02:00
Updated resource wait time and changed sorting function value
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
--[[------------------------------------------------------------------------
|
--[[------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user