STG ScriptsDocumentation
3 in 1 Shop

Installation

Install STG 3 in 1 Shop on your FiveM server in five steps, with item notes for ox_inventory, qb-inventory and the ESX inventory.

3 in 1 Shop

STG 3 in 1 Shop

ESXQBCoreQBOX
View in store

Download the script

Sign in to the Cfx.re portal with the account you used at checkout and download stg-shop from Granted Assets.

Move the resource

Extract the zip and place the stg-shop folder inside the [STG] category folder in your resources directory.

resources/
└── [STG]/
    └── stg-shop/

Install the dependencies

3 in 1 Shop needs ox_lib. Skip this step if your server already runs it.

Check the items

The stores hand out the item named by each name in STG.Items. Robberies hand out the items in STG.robItems, and the weapon shop gives the ammoItem of a weapon when the player already owns it. Every one of these names must exist in your inventory.

The default config uses coffee, burger, chips, water, cola, soda, pickaxe, divingsuit, wuerfel, anker and pistolammo. Add the ones you are missing to your inventory, or replace them in stg-shop/config.lua with items you already have.

Add missing items to ox_inventory/data/items.lua. ox_inventory already ships every weapon_* item. Its pistol ammo is called ammo-9, so use that as ammoItem.

On ESX, set STG.weaponWithItem = true so weapons are given as inventory items.

Add missing items to qb-core/shared/items.lua. The weapon_* items already exist there. Pistol ammo is called pistol_ammo in QBCore, so use that as ammoItem.

Weapons are always given as items on QBCore and QBOX, STG.weaponWithItem has no effect.

Add missing items to the items table in your database. With STG.weaponWithItem = false, weapons go to the player's loadout and only ammoItem needs to be an item.

Start the script

Make sure [STG] starts after your framework and ox_lib in server.cfg:

ensure ox_lib
# your framework: es_extended, qb-core or qbx_core
ensure [STG]

Then restart the whole server.

Nothing happens or the console shows an error? See Common Errors.

Next steps

Still having trouble?

Open a ticket on our Discord. Our team answers around 15 hours a day.

Get help on Discord

On this page