Docs /Vehicle Item/Configuration
v1.0.0

Configuration

All configurable settings are located in the shared/ folder.

Vehicle list

Configure the vehicles available for purchase:

Config.Vehicles = {
    {
        model = 'bmx',
        label = 'BMX',
        item = 'bmx_item',
        price = 500
    },
    {
        model = 'cruiser',
        label = 'Cruiser',
        item = 'cruiser_item',
        price = 800
    },
    {
        model = 'scorcher',
        label = 'Scorcher',
        item = 'scorcher_item',
        price = 1000
    }
}

Vehicle parameters

ParameterTypeDescription
modelstringGTA model name (spawn name)
labelstringDisplay name in the menu
itemstringItem name in the database
pricenumberPurchase price in dollars

Each item must match an entry in your database items table.

Shop position

Config.Shop = {
    coords = vector3(x, y, z),
    heading = 0.0,
    blip = {
        enabled = true,
        sprite = 226,
        scale = 0.8,
        color = 3,
        label = "Vehicles"
    },
    ped = {
        model = 's_m_y_shop_mid',
        heading = 0.0
    }
}

Spawn settings

Config.Spawn = {
    offset = vector3(2.0, 0.0, 0.0), -- offset from the player
    deleteOnStore = true -- delete the vehicle when stored
}

Spawn options

  • offset: relative position from the player where the vehicle spawns.
  • deleteOnStore: if true, the vehicle is deleted from the world when the player stores it (converts back to item).

Miscellaneous settings

Config.UseRageUI = true -- use RageUI for menus
Config.Locale = 'en' -- default language