Common Problems

List of common problems

I can't use consume items

Consumables are related to the esx_basicneeds or qb-smallresources script. If the consumable item you are using is not included in these scripts, you won't be able to use the item. Additionally, you can set an item as a consumable in the items.lua file. Click here for more information.

An extra point to be cautious about for QB.

In QB's remove export, the 5th parameter is used for logging, but in tgiann-inventory, this parameter is used for metadata checking. If this 5th parameter is present in QB scripts, the script won't be able to remove the item you want because it will perform a metadata check.

The RemoveItem export that I converted from QB is not working.

In QB's remove export, the 5th parameter is used for logging, but in tgiann-inventory, this parameter is used for metadata checking. If this 5th parameter is present in QB scripts, the script won't be able to remove the item you want because it will perform a metadata check.

Images of the items are not showing up

Item İmages(Click me)

OpenInventory Export Error

You should check the line in the script that is causing the error and adjust the export to make it compatible with my inventory.

Server

CreateShop Export Error

If the error is caused by qb-shops, download the qb-shops from the installation page. If a different script is causing the error, adjust the export to make it compatible with my inventory.

Items are not showing when using the /items command.

This issue is usually experienced by QB users. You can fix this by adjusting the isAdmin function in the server/editable file.

Items are duplicating in the hotbar, and even when removed from my inventory, they are not disappearing from the hotbar.

This is not a bug. The first 5 slots are fast slots. Even if the items are removed from your inventory, they won't be removed from the fast slots. When you pick up the same item again, you can use it directly from the fast slot. This way, you don't have to drag items from your inventory to the hotbar repeatedly.

Special weapons for police are not working.

You need to add weapons that can only be used by police to your items.lua file first, and then adjust the config.weaponPoliceJobs setting in the inventory config file. Normal weapon: weapon_pistol Police weapon: weapon_police_pistol

script: tgiann-inventory LocalPlayer.state.items is null, make sure your onesync setting is active and the script is properly installed. Please check docs

The common reasons for this error are:

  1. Because you haven’t completed the installation:

  2. Because your Onesync setting is not enabled:

    • To check, type 'onesync' in the server console and see if it’s active.

  3. Because you don’t have a Patreon key worth at least $15:

    • Set your server's maximum player limit to less than 7. When the player count is below 7, you can use all of FiveM's paid versions. If it works when set to less than 7, you’ll need a Patreon key for FiveM.

Last updated