> For the complete documentation index, see [llms.txt](https://secret-code.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://secret-code.gitbook.io/docs/creators/secret-garage/commands.md).

# Commands

Secret Garage includes several commands for **garage administration, vehicle management, Exclusive Vehicles, Photo Room, and player vehicle access**.

Most command names and aliases can be changed directly from `config.lua`.

> The commands listed on this page are the **public commands intended for server administrators and players**. Internal Secret Garage commands used by the resource itself are intentionally not included.

***

## Available Commands

| Command          | Default Aliases                                   | Access                      | Description                                                                |
| ---------------- | ------------------------------------------------- | --------------------------- | -------------------------------------------------------------------------- |
| `/garagecreator` | `/garagepanel`, `/sgcreator`                      | Admin                       | Opens the Garage Creator                                                   |
| `/exclusives`    | `/exclusivepanel`                                 | Admin                       | Opens the Exclusive Vehicles administration panel                          |
| `/makeexclusive` | `/makeex`, `/setexclusive`                        | Admin                       | Captures the vehicle you are driving and opens its Exclusive configuration |
| `/exclusivecar`  | `/excar`                                          | Admin                       | Legacy command for `/makeexclusive`                                        |
| `/exclusivelist` | `/exlusivelist`                                   | Admin                       | Opens the Exclusive Vehicles model list directly                           |
| `/admincar`      | —                                                 | Admin                       | Assigns the vehicle you are currently driving to yourself                  |
| `/vehicleadmin`  | `/vehiclesadmin`, `/ownedvehicles`, `/sgvehicles` | Admin                       | Opens the ordinary owned-vehicle administration panel                      |
| `/carpicture`    | —                                                 | Authorized users            | Opens Photo Room for a nearby vehicle                                      |
| `/vehiclelock`   | Default key: `L`                                  | Players with vehicle access | Locks or unlocks a Secret Garage vehicle                                   |

***

## Administrative Commands

### `/garagecreator`

```
/garagecreator
```

Default aliases:

```
/garagepanel
/sgcreator
```

Opens the **Secret Garage Creator**.

This is the primary administration interface for creating and managing garages directly inside the game.

Administrators can use it to work with garage configurations such as:

* Public garages
* Job garages
* Personal garages
* Group garages
* Rental locations
* Impounds
* Vehicle types
* Interaction points
* Spawn points
* Store zones
* NPCs
* Blips
* Access configuration

The command requires one of the groups configured in:

```lua
Config.Creator.allowedGroups
```

Default:

```lua
allowedGroups = {
    superadmin = true,
    admin = true
}
```

The command and aliases can be changed with:

```lua
Config.Creator = {
    command = 'garagecreator',
    aliases = {
        'garagepanel',
        'sgcreator'
    }
}
```

***

## Exclusive Vehicles Commands

Secret Garage includes a dedicated administration system for **Exclusive Vehicles, licenses, shared copies, model rules, and Job vehicle assignments**.

All Exclusive administration commands require administrator access.

***

### `/exclusives`

```
/exclusives
```

Default alias:

```
/exclusivepanel
```

Opens the main **Exclusive Vehicles administration panel**.

This is the recommended command for managing the complete Exclusive Vehicles system.

From this interface, authorized administrators can access features such as:

* Exclusive dashboard
* Exclusive vehicle models
* Model configuration
* Exclusive licenses
* Shared copies
* Job vehicle assignments
* Exclusive vehicle rules

The command can be changed with:

```lua
Config.ExclusiveVehicles.menuCommand = 'exclusives'

Config.ExclusiveVehicles.menuAliases = {
    'exclusivepanel'
}
```

***

### `/makeexclusive`

```
/makeexclusive
```

Default aliases:

```
/makeex
/setexclusive
```

Converts the **vehicle model you are currently driving** into an Exclusive Vehicle configuration.

The administrator must:

1. Be inside a vehicle.
2. Be in the driver's seat.
3. Run `/makeexclusive`.

Secret Garage detects the vehicle model and opens the Exclusive model editor with the current vehicle already selected.

This makes it possible to configure the vehicle without manually searching for its model.

The command can be changed with:

```lua
Config.ExclusiveVehicles.makeCommand = 'makeexclusive'

Config.ExclusiveVehicles.makeAliases = {
    'makeex',
    'setexclusive'
}
```

***

### `/exclusivecar`

```
/exclusivecar
```

Default alias:

```
/excar
```

This is a **legacy compatibility command**.

It performs the same vehicle capture workflow as:

```
/makeexclusive
```

It remains available so servers using older Secret Garage configurations do not need to immediately change their existing commands.

New installations should preferably use:

```
/makeexclusive
```

Configuration:

```lua
Config.ExclusiveVehicles.command = 'exclusivecar'

Config.ExclusiveVehicles.aliases = {
    'excar'
}
```

***

### `/exclusivelist`

```
/exclusivelist
```

Opens the Exclusive Vehicles administration interface directly on the **vehicle model list**.

This is useful when an administrator wants to browse or manage already configured Exclusive models without first opening the dashboard.

The current default alias is:

```
/exlusivelist
```

Configuration:

```lua
Config.ExclusiveVehicles.listCommand = 'exclusivelist'

Config.ExclusiveVehicles.listAliases = {
    'exlusivelist'
}
```

> `/exlusivelist` is kept as an alternate alias. `/exclusivelist` is the recommended command.

***

### Exclusive Command Permissions

Exclusive administration uses:

```lua
Config.ExclusiveVehicles.allowedGroups
```

Default:

```lua
allowedGroups = {
    superadmin = true,
    admin = true
}
```

Secret Garage can also recognize its configured Creator administration permissions and supported ACE permissions where applicable.

Exclusive administration ACE permissions include:

```
secretgarage.exclusive
secretgarage.creator
```

***

## `/admincar`

```
/admincar
```

Assigns the **vehicle currently being driven by an administrator** as an owned vehicle.

The administrator must be:

* Inside a vehicle
* In the driver's seat
* Authorized to use the command

Secret Garage reads the vehicle properties, plate, fuel, model, and vehicle type before registering it.

#### Important

Secret Garage will only assign the vehicle when its plate **does not already exist** in the configured owned-vehicle table.

If the vehicle is already registered, `/admincar` will not create a duplicate ownership record.

The command is configured with:

```lua
Config.AdminCar = {
    command = 'admincar',

    allowedGroups = {
        superadmin = true,
        admin = true
    }
}
```

Secret Garage also supports the ACE permission:

```
secretgarage.admincar
```

This command is particularly useful for:

* Addon vehicles
* Administrator-created vehicles
* Test vehicles
* Manually spawned vehicles
* Giving yourself ownership of an unregistered vehicle

***

## `/vehicleadmin`

```
/vehicleadmin
```

Default aliases:

```
/vehiclesadmin
/ownedvehicles
/sgvehicles
```

Opens the **Owned Vehicle Administration** interface.

This panel is designed for managing ordinary **non-exclusive owned vehicles** registered in the server vehicle database.

It provides administrators with a centralized browser for inspecting and managing vehicles belonging to players.

The feature must be enabled:

```lua
Config.VehicleAdmin.enabled = true
```

Command configuration:

```lua
Config.VehicleAdmin = {
    enabled = true,

    command = 'vehicleadmin',

    aliases = {
        'vehiclesadmin',
        'ownedvehicles',
        'sgvehicles'
    },

    temporaryVehicleSeconds = 15,

    allowedGroups = {
        superadmin = true,
        admin = true
    }
}
```

Authorized Creator and Exclusive administrators may also receive access through the Secret Garage permission bridge.

The following ACE permission is supported:

```
secretgarage.vehicleadmin
```

***

## Photo Room Command

### `/carpicture`

```
/carpicture
```

Starts **Secret Garage Photo Room** using a nearby vehicle.

The command searches for a vehicle within the configured distance:

```lua
Config.PhotoRoom.maxVehicleDistance = 6.0
```

When a valid vehicle is found, the Photo Room workflow begins and allows an authorized user to generate an image for that vehicle model.

The default configuration is:

```lua
Config.PhotoRoom = {
    command = 'carpicture',
    maxVehicleDistance = 6.0,
    encoding = 'webp',
    quality = 0.92
}
```

#### Photo Room Access

Unlike the normal administrator commands, `/carpicture` uses the **Photo Room authorization list**.

To use the command:

* A Fivemanage API key must be configured.
* The player's identifier must be authorized in Photo Room settings.
* `screenshot-basic` must be running.
* A vehicle must be within the configured distance.

This allows server owners to give Photo Room access only to specific trusted users without granting them complete Secret Garage administrator permissions.

***

## Player Commands

### `/vehiclelock`

```
/vehiclelock
```

Locks or unlocks the current or closest Secret Garage vehicle.

The player must have valid access to the vehicle.

Access may come from:

* Vehicle ownership
* Shared Secret Garage keys
* Job vehicle access
* Rental vehicle access
* A compatible configured vehicle key integration

The feature must be enabled:

```lua
Config.VehicleKeys.enabled = true
```

***

### Default Keybind

Secret Garage automatically registers the vehicle lock command as a FiveM key mapping.

Default:

```
L
```

Therefore, players normally do not need to manually type:

```
/vehiclelock
```

They can simply press:

```
L
```

The default configuration is:

```lua
Config.VehicleKeys = {
    enabled = true,

    lockCommand = 'vehiclelock',
    lockKey = 'L',
    lockDistance = 8.0
}
```

Players can also change the registered keybind through their FiveM key binding settings.

***

### Lock Distance

```lua
lockDistance = 8.0
```

Determines the maximum distance used when searching for a nearby vehicle that the player can lock or unlock.

***

### Lock Feedback

Secret Garage can provide visual and audio feedback when locking or unlocking a vehicle.

```lua
hornWhenEmpty = true
flashLights = true
```

When the vehicle is empty, Secret Garage can briefly activate the horn.

When somebody is inside the vehicle, Secret Garage avoids using the vehicle horn and uses frontend feedback instead.

***

## Changing Command Names

Most Secret Garage commands can be renamed directly from `config.lua`.

For example:

```lua
Config.Creator.command = 'garagecreator'
Config.PhotoRoom.command = 'carpicture'
Config.VehicleKeys.lockCommand = 'vehiclelock'
Config.AdminCar.command = 'admincar'
Config.VehicleAdmin.command = 'vehicleadmin'
```

Exclusive commands are available under:

```lua
Config.ExclusiveVehicles.menuCommand
Config.ExclusiveVehicles.makeCommand
Config.ExclusiveVehicles.command
Config.ExclusiveVehicles.listCommand
```

Aliases can also be modified:

```lua
Config.Creator.aliases
Config.ExclusiveVehicles.menuAliases
Config.ExclusiveVehicles.makeAliases
Config.ExclusiveVehicles.aliases
Config.ExclusiveVehicles.listAliases
Config.VehicleAdmin.aliases
```

> Changing a command in `config.lua` does not require modifying Secret Garage core files.

***

## Quick Reference

```
/garagecreator     → Garage Creator
/exclusives        → Exclusive administration
/makeexclusive     → Configure the currently driven model as Exclusive
/exclusivecar      → Legacy Make Exclusive command
/exclusivelist     → Open Exclusive model list
/admincar          → Register the currently driven unowned vehicle
/vehicleadmin      → Ordinary owned-vehicle administration
/carpicture        → Vehicle Photo Room
/vehiclelock       → Lock / unlock an accessible vehicle
```

For a normal production server, players will generally only interact with `/vehiclelock` — usually through its default **L keybind** — while the remaining commands are intended for administration, setup, or specialized Photo Room access.
