
QBox Install
Setup
Remove dependency of ox_inventory from qbx_core/server/main.lua ⇒ line 5
Replace the function qbx_core/server/player.lua ⇒ giveStarterItems with the following
local function giveStarterItems(source)
for i = 1, #starterItems do
local item = starterItems[i]
if item.metadata and type(item.metadata) == 'function' then
exports.row_inventory:AddItem(source, item.name, item.amount, item.metadata(source))
else
exports.row_inventory:AddItem(source, item.name, item.amount, item.metadata)
end
end
endReplace the function qbx_core/server/player.lua ⇒ self.Functions.GetItemByName with the following
Replace the function qbx_core/server/player.lua ⇒ self.Functions.GetItemsByName with the following
Replace the function qbx_core/server/player.lua ⇒ Save with the following
Replace the qbx_core/server/player.lua ⇒ SaveOffline function with the following
Replace the local function qbx_core/server/player.lua ⇒ emitMoneyEvents with the following
Replace the local function qbx_core/server/player.lua ⇒ self.Functions.SetMoney with the following
Replace the local function qbx_core/server/player.lua ⇒ SetMoney with the following
Replace the qbx_core/server/player.lua ⇒ function CheckPlayerData ⇒ playerData.items = {} with the fallowing
Last updated