update weapons loop

This commit is contained in:
Arctos2win
2023-09-17 15:17:15 +02:00
committed by GitHub
parent 81de01e90e
commit f7ec1f9fe2
+4 -3
View File
@@ -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)