mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-29 00:01:20 +00:00
refactor(es_extended/server/functions): use numeric loop
This commit is contained in:
@@ -684,7 +684,8 @@ if not Config.CustomInventory then
|
||||
local toInsert = {}
|
||||
local toInsertIndex = 1
|
||||
|
||||
for _, item in ipairs(items) do
|
||||
for i = 1, #items do
|
||||
local item = items[i]
|
||||
local name = item.name
|
||||
local label = item.label
|
||||
local weight = item.weight or 1
|
||||
|
||||
Reference in New Issue
Block a user