Skip to content

Commit

Permalink
feat(server/characters): allow for basic character creation without o…
Browse files Browse the repository at this point in the history
…x_inventory

* modify: allow for basic character creation without ox_inventory

* fix: re-add missing functionality
  • Loading branch information
JoeSzymkowiczFiveM committed Jan 7, 2024
1 parent 3954289 commit 65553d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/character.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ end

---@param source Source
local function giveStarterItems(source)
if GetResourceState('ox_inventory') == 'missing' then return end
while not exports.ox_inventory:GetInventory(source) do
Wait(100)
end

for i = 1, #config.starterItems do
local item = config.starterItems[i]
if item.metadata and type(item.metadata) == 'function' then
Expand Down

0 comments on commit 65553d0

Please sign in to comment.