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:

  1. Open the config.parkinglots.lua file in the resource folder.
  2. Locate the Config.ParkingLots table.
  3. Add a new entry in the table, structured as follows:
Config.ParkingLots = {
    ...
    -- Add a new parking lot entry here
    {
        name = 'parkinglot_name', -- Unique identifier for this parking lot
        title = 'Parking Lot Title', -- The name displayed in the UI
        coords = vector4(x, y, z, heading), -- Location of the parking lot
        vehicle = vector4(x, y, z, heading) -- Vehicle spawn point
    }
}

Click here to explore additional configuration options.

  1. Replace 'parkinglot_name' with a unique identifier. This must not match any other parking lot.
  2. Replace 'Parking Lot Title' with the display name of the parking lot.
  3. Replace the first x, y, z, and heading with the coordinates and orientation of the parking lot.
  4. Replace the second x, y, z, and heading with the coordinates and orientation of the vehicle spawn point.
  5. Save the file and restart the resource.

Changing the Default Parking Lot Blip

To modify the default blip settings for parking lots:

  1. Open the config.parkinglots.lua file in the resource folder.
  2. Locate the Config.ParkingLotBlip table.
  3. Adjust the values as needed:
Config.ParkingLotBlip = {
    sprite = 357, -- Blip icon (see link below for options)
    scale = 0.8, -- Blip size on the map
    color = 4, -- Blip color
    title = '%s Parking Lot' -- Displayed name (%s will be replaced by the parking lot name)
}

You can find a full list of available blip icons and their corresponding IDs here.

  1. Save the file and restart the resource.

Changing the Parking Lot Model

  1. Open the config.parkinglots.lua file in the resource folder.
  2. Locate the Config.ParkingLotModel variable.
  3. Change the value to your preferred model.
  4. Save the file and restart the resource.

Parking Lot Configuration Reference

Parking Lot Table Properties

PropTypeDefault
name
string
-
title
string
-
coords
vector4
-
vehicle
vector4
-
enterDistance
number
1.0
noBlip
boolean
false
requiredJob
string
-
blip
Blip Table
-

Blip Table Properties

PropTypeDefault
sprite
number
-
scale
number
-
color
number
-
title
string
-

On this page