mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-28 17:01:14 +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)
|
||||
for _, v in ipairs(self.inventory) do
|
||||
if v.itemName == itemName then
|
||||
if v.name == itemName then
|
||||
return v
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user