Possibly fixing issues with putting stock.

This commit is contained in:
BrakingESX247
2020-07-19 18:26:37 +01:00
parent 7b7ab6f797
commit cb085f488d
2 changed files with 18 additions and 12 deletions
+5 -3
View File
@@ -100,7 +100,9 @@ AddEventHandler('esx_taxijob:putStockItems', function(itemName, count)
end
end)
ESX.RegisterServerCallback('esx_taxijob:getPlayerInventory', function(source, cb)
ESX.RegisterServerCallback('esx_policejob:getPlayerInventory', function(source, cb)
local xPlayer = ESX.GetPlayerFromId(source)
cb(xPlayer.getInventory())
end)
local items = xPlayer.inventory
cb({items = items})
end)