STG ScriptsDocumentation
Vehicle Shop

Installation

Install STG Vehicle Shop on your FiveM server in six steps, with notes for the ESX and the QBCore / QBOX version.

Vehicle Shop

STG Vehicle 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_vehicleshop from Granted Assets.

The script comes in two versions. Use the ESX version on ESX servers and the QBCore version on QBCore and QBOX servers.

Move the resource

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

resources/
└── [STG]/
    └── stg_vehicleshop/

Install the dependencies

Vehicle Shop needs oxmysql and your framework. Skip this step if your server already runs them.

Point the script to oxmysql

Open stg_vehicleshop/fxmanifest.lua. The database library is loaded from mysql-async:

server_script {
    '@mysql-async/lib/MySQL.lua',
    "config.lua",
    "main/server.lua",
}

Change the first line to '@oxmysql/lib/MySQL.lua' so the script uses oxmysql.

Check the vehicle table

Bought vehicles are saved to your framework's own vehicle table, so they show up in your garage script.

Vehicles are saved to owned_vehicles with the player's identifier as owner. The table comes with es_extended.

Vehicles are saved to player_vehicles with the player's citizenid and license. The garage is set to pillboxgarage and the state to out, because the player drives the vehicle away from the shop.

Start the script

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

ensure oxmysql
# 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