Tweaked spawnpoint check, fixed inventory

This commit is contained in:
ElPumpo
2018-08-12 20:36:17 +02:00
parent b90a0878fd
commit 983a0a4c1b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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)