๐ Vehicles
Configure vehicle spawning and garage settings.
Vehicle Settings
Config.Vehicles = {
spawnLocation = vector4(146.5, -1045.0, 29.2, 70.0),
garageAssign = true,
garageName = 'pillboxgarage',
keySystem = 'auto',
platePrefix = 'DON',
defaultMods = {
engine = 4,
brakes = 2,
transmission = 2,
},
}Settings Explained
| Option | Description |
|---|---|
spawnLocation | Where purchased vehicles spawn |
garageAssign | Add vehicle to player's garage |
garageName | Which garage to add vehicle to |
keySystem | Key system for vehicle access |
platePrefix | Prefix for generated plates |
defaultMods | Default vehicle modifications |
Key Systems
The script automatically detects your key system:
| System | Auto-Detected |
|---|---|
qbx_vehiclekeys | โ Yes |
qb-vehiclekeys | โ Yes |
qs-vehiclekeys | โ Yes |
vehicles_keys | โ Yes |
To force a specific system:
keySystem = 'qb-vehiclekeys'Spawn Location
The spawn location uses vector4 format: vector4(x, y, z, heading)
Make sure the location:
- Has enough space for vehicles
- Is accessible to players
- Doesn't block traffic
Garage Integration
When garageAssign = true, vehicles are:
- Spawned at the spawn location
- Added to the player's garage database
- Given proper ownership
Plate Generation
Plates are generated with the format: {prefix}{random}
Example with platePrefix = 'DON': DON12345