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.

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

Money doesn't appear as an item?
  • To make money appear as an item, you need to enable the moneyAsItem setting in the config file. Additionally, follow the instructions in the linked docs provided in the config to apply the necessary changes to your framework.

  • The script updates your framework's money values and listens for changes. If any of your scripts modify the money values in the framework, the money displayed in your inventory will automatically update as well.

  • If money is not updating in the inventory, it's likely because the scripts you're using are not modifying the framework’s money values correctly, this is an issue related to the script you're using.

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.

How do I add police-only weapons?

Every weapon you add to the weapons.lua file automatically gets a police version generated. To access the police version of a weapon, all you need to do is give yourself the item with the police tag.

Example: Normal weapon: weapon_pistol Police weapon: weapon_police_pistol

The player's weight limit is very low or 0.

This issue is usually caused by another script modifying the weight limit. It commonly occurs in ESX. Search for the setMaxWeight function across all your scripts.

Clothing images in the inventory are showing as boxes

Clothing images in the inventory are showing as boxes. There are a few main reasons for this:

  1. You may not have captured the clothing images. Check here: How to take clothes images.

  2. Your clothes_images script might not be starting. You may have accidentally deleted important files like the fxmanifest.

  3. If your machine has a cache/CDN system, your provider may not support a high number of files. (To resolve this, reduce the number of images to 10 and check those images in the game.)

In QBCore, the LoadInventory export in the player.lua file throws an error.

Remove the line where the export is defined, you don't need it.

example code block
The armor clothing disappears or is not visible

This is due to the inventory's realistic armor feature. Please check the configRealisticArmor.lua file for more details.

Last updated