Minor variable renaming

This commit is contained in:
ElPumpo
2020-04-11 11:55:27 +02:00
parent 8de2e4311a
commit ddd3a88336
2 changed files with 24 additions and 25 deletions
+4 -4
View File
@@ -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)