Configuration
General
Config.Framework = 'auto' -- 'auto' | 'esx' | 'qbcore' | 'qbox'
Config.Inventory = 'auto' -- 'auto' | 'ox_inventory' | 'framework'
Config.NotifySystem = 'kyoNotify' -- 'framework' | 'kyoNotify' | 'vms_notifyV2'
Config.ShopKey = 38 -- E
Config.InteractDistance = 1.5
Config.ImagePath = 'auto' -- item images; %s = item name
Config.Framework = 'auto'detects qbx_core, qb-core or es_extended, in that order.Config.Inventory = 'auto'delivers items with ox_inventory when it is running, otherwise with the framework inventory.Config.ImagePath = 'auto'uses the image folder of ox_inventory, qs-inventory, origen_inventory, qb-inventory or ps-inventory.
With kyoNotify, the “[E] Open VIP shop” prompt uses kyoNotify’s help text; otherwise a 3D text is drawn above the NPC.
Currencies
Config.Currencies = {
coins = { esx = 'coins', qb = 'coins', label = 'coins' },
money = { esx = 'money', qb = 'cash', label = '$' },
}
| Field | Meaning |
|---|---|
esx | Account name on ESX |
qb | Money type on QBCore / Qbox (cash, bank, crypto, or one you added) |
label | Shown in the purchase notification |
Any of them can be 'item:<name>' to pay with an inventory item, for example qb = 'item:vip_coin'.
Admin
Config.Admin = {
Groups = { 'admin', 'superadmin', 'god' }, -- ESX group, or ACE on QBCore / Qbox
Ace = 'kyovipshops.admin',
}
Config.Commands = {
SetVip = 'setvip',
RemoveVip = 'removevip',
CheckVip = 'checkmyvip',
}
Shop NPCs
Config.VIPShops = {
{
coords = vector3(258.4548, -786.8971, 30.4296 - 1),
heading = 19.9641,
model = `a_m_y_business_01`,
blip = {
enabled = true,
id = 52,
color = 5,
scale = 0.8,
name = "VIP Shop",
},
},
}
Add more entries for more shops.
Items
Config.Items = {
{
item = "WEAPON_APPISTOL",
label = "Pack x25 AP Pistol",
price = 10,
currency = "coins", -- "coins" or anything else for cash
amount = 25, -- given per purchase
description = "Pack of 25 AP pistols.",
category = "weapon", -- "weapon" | "ammo" | "others"
rarity = "Rare",
stock = 999,
},
}
| Field | Description |
|---|---|
item | Item name in your inventory |
label | Name in the shop |
price | Price per purchase |
currency | "coins", or anything else for cash (see Currencies) |
amount | How many are given per purchase |
description | Text in the shop |
category | Tab: weapon, ammo or others |
rarity | Badge shown on the card |
stock | Shown on the card |
Security: the client only sends which article it wants. Price, amount and currency are always read from
Config.Itemson the server.