diff --git a/README.md b/README.md index 7f62914a..92f5e3df 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,7 @@ add_principal group.admin group.user add_ace resource.es_extended command.add_ace allow add_ace resource.es_extended command.add_principal allow add_ace resource.es_extended command.remove_principal allow +add_ace resource.es_extended command.stop allow start mysql-async start es_extended diff --git a/server/functions.lua b/server/functions.lua index 88348110..1271d840 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -256,11 +256,12 @@ end ESX.CreatePickup = function(type, name, count, label, playerId, components, tintIndex) local pickupId = (ESX.PickupId == 65635 and 0 or ESX.PickupId + 1) local xPlayer = ESX.GetPlayerFromId(playerId) + local coords = xPlayer.getCoords() ESX.Pickups[pickupId] = { type = type, name = name, count = count, label = label, - coords = xPlayer.getCoords() + coords = coords } if type == 'item_weapon' then @@ -268,7 +269,7 @@ ESX.CreatePickup = function(type, name, count, label, playerId, components, tint ESX.Pickups[pickupId].tintIndex = tintIndex end - TriggerClientEvent('esx:createPickup', -1, pickupId, label, xPlayer.getCoords(), type, name, components, tintIndex) + TriggerClientEvent('esx:createPickup', -1, pickupId, label, coords, type, name, components, tintIndex) ESX.PickupId = pickupId end