mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 04:01:22 +00:00
update weapons loop
This commit is contained in:
@@ -1077,7 +1077,8 @@ function ESX.ShowInventory()
|
||||
|
||||
elements[1].title = TranslateCap('inventory', currentWeight, Config.MaxWeight)
|
||||
|
||||
for _, v in ipairs(Config.Weapons) do
|
||||
for i=1, #Config.Weapons do
|
||||
local v = Config.Weapons[i]
|
||||
local weaponHash = joaat(v.name)
|
||||
|
||||
if HasPedGotWeapon(playerPed, weaponHash, false) then
|
||||
@@ -1096,8 +1097,8 @@ function ESX.ShowInventory()
|
||||
canRemove = true
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
ESX.CloseContext()
|
||||
|
||||
ESX.OpenContext("right", elements, function(_, element)
|
||||
|
||||
Reference in New Issue
Block a user