diff --git a/server/player.lua b/server/player.lua index 6ef4eab32..4d2b28784 100644 --- a/server/player.lua +++ b/server/player.lua @@ -835,11 +835,11 @@ function CreatePlayer(playerData, Offline) ---@deprecated use ox_inventory exports directly ---@param item string ---@param amount number - ---@param slot? number ---@param metadata? table + ---@param slot? number ---@return boolean success function self.Functions.AddItem(item, amount, slot, metadata) - return exports.ox_inventory:AddItem(self.PlayerData.source, item, amount, slot, metadata) + return exports.ox_inventory:AddItem(self.PlayerData.source, item, amount, metadata, slot) end ---@deprecated use ox_inventory exports directly