mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 17:28:53 +00:00
Fixed "Changing ones own access is not permitted"
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user