Skip to content

Commit

Permalink
fix: table not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm committed Jun 17, 2024
1 parent 0e6520e commit 4ad52ee
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions bridge/qb/shared/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@ local starterItems = require 'config.server'.starterItems
local qbShared = require 'shared.main'

---@deprecated use starterItems in config/server.lua
qbShared.StarterItems = function()
local starter = {}
qbShared.StarterItems = {}

for i = 1, #starterItems do
local item = starterItems[i]
starter[item.name] = {
amount = item.amount,
item = item.name,
}
end

return starter
for i = 1, #starterItems do
local item = starterItems[i]
qbShared.StarterItems[item.name] = {
amount = item.amount,
item = item.name,
}
end

---@deprecated use lib.math.groupdigits from ox_lib
Expand Down

0 comments on commit 4ad52ee

Please sign in to comment.