Configuration

Garages

Learn how to configure garages in your resource.

Creating a New Garage

Follow these steps to add a new garage to your resource:

  1. Open the config.garages.lua file in the resource folder.
  2. Locate the Config.Garages table.
  3. Add a new entry in the table, structured as follows:
Config.Garages = {
    ...
    -- Add a new garage entry here
    {
        name = 'garage_name', -- Unique identifier for this garage
        title = 'Garage Title', -- The name displayed in the UI
        coords = vector4(x, y, z, heading), -- Location and vehicle spawn direction
        interior = 'mid' -- Interior type (options listed below)
    }
}

Click here to explore additional configuration options.

  1. Replace 'garage_name' with a unique identifier. This must not match any other garage.
  2. Replace 'Garage Title' with the display name of the garage.
  3. Replace x, y, z, and heading with the garage's coordinates and vehicle orientation.
  4. Set interior to one of the available options: low, mid, mid2, high, tuner, or parking_garage.
  5. Save the file and restart the resource.

Changing the Default Garage Blip

To modify the default blip settings for garages:

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

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

  1. Save the file and restart the resource.

Garage Configuration Reference

Garage Table Properties

PropTypeDefault
name
string
-
title
string
-
coords
vector4
-
enterDistance
number
1.0
interior
string
low
noBlip
boolean
false
requiredJob
string
-
cameraHeight
number
10.0
blip
Blip Table
-

Blip Table Properties

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

On this page