Configuration
Parking Lots
Learn how to configure parking lots.
Creating a New Parking Lot
Follow these steps to add a new parking lot to your resource:
- Open the
config.parkinglots.lua
file in the resource folder. - Locate the
Config.ParkingLots
table. - Add a new entry in the table, structured as follows:
Click here to explore additional configuration options.
- Replace
'parkinglot_name'
with a unique identifier. This must not match any other parking lot. - Replace
'Parking Lot Title'
with the display name of the parking lot. - Replace the first
x
,y
,z
, andheading
with the coordinates and orientation of the parking lot. - Replace the second
x
,y
,z
, andheading
with the coordinates and orientation of the vehicle spawn point. - Save the file and restart the resource.
Changing the Default Parking Lot Blip
To modify the default blip settings for parking lots:
- Open the
config.parkinglots.lua
file in the resource folder. - Locate the
Config.ParkingLotBlip
table. - Adjust the values as needed:
You can find a full list of available blip icons and their corresponding IDs here.
- Save the file and restart the resource.
Changing the Parking Lot Model
- Open the
config.parkinglots.lua
file in the resource folder. - Locate the
Config.ParkingLotModel
variable. - Change the value to your preferred model.
- Save the file and restart the resource.
Parking Lot Configuration Reference
Parking Lot Table Properties
Prop | Type | Default |
---|---|---|
name | string | - |
title | string | - |
coords | vector4 | - |
vehicle | vector4 | - |
enterDistance | number | 1.0 |
noBlip | boolean | false |
requiredJob | string | - |
blip | Blip Table | - |
Blip Table Properties
Prop | Type | Default |
---|---|---|
sprite | number | - |
scale | number | - |
color | number | - |
title | string | - |