mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 10:18:54 +00:00
Minor variable renaming
This commit is contained in:
+4
-4
@@ -420,8 +420,8 @@ AddEventHandler('esx:useItem', function(itemName)
|
||||
end)
|
||||
|
||||
RegisterNetEvent('esx:onPickup')
|
||||
AddEventHandler('esx:onPickup', function(id)
|
||||
local pickup, xPlayer, success = ESX.Pickups[id], ESX.GetPlayerFromId(source)
|
||||
AddEventHandler('esx:onPickup', function(pickupId)
|
||||
local pickup, xPlayer, success = ESX.Pickups[pickupId], ESX.GetPlayerFromId(source)
|
||||
|
||||
if pickup then
|
||||
if pickup.type == 'item_standard' then
|
||||
@@ -449,8 +449,8 @@ AddEventHandler('esx:onPickup', function(id)
|
||||
end
|
||||
|
||||
if success then
|
||||
ESX.Pickups[id] = nil
|
||||
TriggerClientEvent('esx:removePickup', -1, id)
|
||||
ESX.Pickups[pickupId] = nil
|
||||
TriggerClientEvent('esx:removePickup', -1, pickupId)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user