mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 18:28:52 +00:00
Tweaked spawnpoint check, fixed inventory
This commit is contained in:
+1
-1
@@ -166,7 +166,7 @@ function OpenTaxiActionsMenu()
|
||||
|
||||
if data.current.value == 'spawn_vehicle' then
|
||||
|
||||
if not ESX.Game.IsSpawnPointClear(Config.Zones.VehicleSpawnPoint.Pos, 3.0) then
|
||||
if not ESX.Game.IsSpawnPointClear(Config.Zones.VehicleSpawnPoint.Pos, 5.0) then
|
||||
ESX.ShowNotification(_U('spawnpoint_blocked'))
|
||||
return
|
||||
end
|
||||
|
||||
+1
-1
@@ -96,5 +96,5 @@ ESX.RegisterServerCallback('esx_taxijob:getPlayerInventory', function(source, cb
|
||||
local xPlayer = ESX.GetPlayerFromId(source)
|
||||
local items = xPlayer.inventory
|
||||
|
||||
cb( { items } )
|
||||
cb( { items = items } )
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user