๐Ÿšœvehicle data

Overview

Vehicle data is stored in JSON files located in data/dealers/ folder. Each dealer has its own JSON file with categories and vehicles.

File Location

data/
โ””โ”€โ”€ dealers/
    โ”œโ”€โ”€ nova_imports.json
    โ””โ”€โ”€ another_dealer.json
circle-info

The JSON filename must match the dealer key in config (lowercase, spaces replaced with underscores).

JSON Structure

{
    "categories": [
        {
            "name": "Compacts",
            "vehicles": [
                {
                    "name": "Blista",
                    "spawnName": "blista",
                    "price": 400,
                    "stock": 7,
                    "productionYear": 2014,
                    "maxSpeed": 165,
                    "speed": 5,
                    "acceleration": 6,
                    "handling": 7,
                    "braking": 6
                }
            ]
        }
    ]
}

Category Options

Option
Type
Required
Description

name

string

Yes

Category display name

vehicles

array

Yes

Array of vehicle objects

Vehicle Options

Option
Type
Required
Description

name

string

Yes

Display name of the vehicle

spawnName

string

Yes

GTA V spawn name (model name)

price

number

Yes

Vehicle price

stock

number

Yes

Available stock (0 = out of stock)

productionYear

number

No

Production year for display

maxSpeed

number

No

Maximum speed (km/h) for display

speed

number

No

Speed rating (1-10)

acceleration

number

No

Acceleration rating (1-10)

handling

number

No

Handling rating (1-10)

braking

number

No

Braking rating (1-10)

Default Categories

The script includes translations for these category names:

Category Name
English
Polish

All

All

Wszystkie

Compacts

Compacts

Kompakty

Sedans

Sedans

Sedany

SUVs

SUVs

SUVy

Coupes

Coupes

Coupe

Muscles

Muscles

Muscle

Sports Classics

Sports Classics

Klasyki sportowe

Sports

Sports

Sportowe

Super

Super

Super

Motorcycles

Motorcycles

Motocykle

Off-Road

Off-Road

Terenowe

Vans

Vans

Vany

Cycles

Cycles

Rowery

Boats

Boats

ลodzie

Example Full Vehicle Data

Adding New Vehicles

1

Open dealer file

Open the dealer's JSON file in data/dealers/.

2

Choose category

Find the appropriate category or create a new one.

3

Add vehicle

Add a vehicle object with required fields (example below).

4

Restart

Restart the resource.

Stock System

The stock value determines if a vehicle is available for purchase:

Stock Value
Status
UI Display

0

Out of Stock

Red badge, cannot purchase

1+

Available

Green badge with count

Stock is currently display-only. To implement actual stock deduction on purchase, modify the server-side purchase handler.