Configuration
Check the instructions below.
The configuration is handled in the shared/config.lua
file. Below is an explanation of the configurable options:
NPC Configuration
NPCs define where players can interact to buy and sell items.
coords
Coordinates where the NPC is placed.
vector3(-662.180, -934.961, 20.829)
heading
Orientation of the NPC.
90.0
ped
Pedestrian model for the NPC.
"s_m_m_security_01"
Example NPC Configuration
Item Configuration
Each NPC can have a list of items available for purchase or sale.
name
Internal name of the item.
"weapon_combatpdw"
label
Display name for the item.
"Combat PDW"
category
Category of the item (e.g., Guns, Ammo).
"Guns"
image
URL for the item image.
"https://cfx-nui-qb-inventory/...png"
buyPrice
Price for buying the item.
500
sellPrice
Price for selling the item.
150
amount
Stock amount (set 0
for unlimited).
0
Example Item Configuration
Currency Configuration
Currency
The currency symbol or string for the shop.
"$"
Example:
Use
"$"
for dollar-based currencies.Use
"Points"
for point-based systems.Use
""
if no currency is needed.
Categories Configuration
Categories group items for better organization in the shop. While the current configuration has an empty Categories
array, you can define categories as needed.
Example Category Configuration
Usage
Approach an NPC to open the shop menu.
Browse available items for purchase or sale.
Items are displayed with their images, prices, and stock availability.
Last updated