mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 16:23:21 +00:00
fix(player.lua): Change v.itemName
This commit is contained in:
@@ -256,7 +256,7 @@ function CreateExtendedPlayer(playerId, identifier, group, accounts, inventory,
|
|||||||
|
|
||||||
function self.getInventoryItem(itemName)
|
function self.getInventoryItem(itemName)
|
||||||
for _, v in ipairs(self.inventory) do
|
for _, v in ipairs(self.inventory) do
|
||||||
if v.itemName == itemName then
|
if v.name == itemName then
|
||||||
return v
|
return v
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user