
QBox Install
Setup
First, go to https://keymaster.fivem.net/ and download the purchased files.
We use this interact system in the inventory system. If you use our version, options like changing colors will work automatically, but you can also use the project creator's version if you wish.
Upload the "row-textUI" file you downloaded from keymaster with the inventory and other inventory files to your server files.
Find the sql file in the "row_inventory" file we gave you and read it.
You can change the language of the file in row_inventory/fxmanifest.lua.
Replace all ox_Inventory exports in your package with row_inventory.
Replace all ox_inventory:currentWeapon events with qb-weapons:client:SetCurrentWeapon.
Replace all @ox_inventory.data.items requires with @row_inventory.data.items.
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
And finally edit the server.cfg initialization section like this.
Last updated