Page cover

QBox Install

Setup

  1. First, go to https://keymaster.fivem.net/ and download the purchased files.

  2. 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 versionarrow-up-right if you wish.

  3. Upload the "row-textUI" file you downloaded from keymaster with the inventory and other inventory files to your server files.

  4. Find the sql file in the "row_inventory" file we gave you and read it.

  5. You can change the language of the file in row_inventory/fxmanifest.lua.

  6. Replace all ox_Inventory exports in your package with row_inventory.

  7. Replace all ox_inventory:currentWeapon events with qb-weapons:client:SetCurrentWeapon.

  8. 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
end

Replace 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

  1. And finally edit the server.cfg initialization section like this.

Last updated