> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_gangs/commands.md).

# Commands

## Player commands

### /actionplayer

```lua
/actionplayer
```

This command allows you to do certain actions on another player such as restraining or escorting them

### /gangmenu

```lua
/gangmenu
```

This opens the gang menu showing you what gang you are in. F10 is the default keybind for this command

### /showzones

```lua
/showzones
```

Toggles if the zones should be displayed or not on the minimap/pause menu map

### /selldrugs

```lua
/selldrugs
```

Opens the drug selling menu

### /actiondrugs

```lua
/actiondrugs
```

Opens the drug selling menu

### /acceptgang

```lua
/acceptgang
```

Accepts the pending gang invitation

## Admin commands

### /managegang

Opens a menu to create or manage gangs.

{% code title="server.lua" overflow="wrap" lineNumbers="true" %}

```lua
/managegang
```

{% endcode %}

Both commands open the same gang management menu — use whichever alias fits the context (creating a new gang or managing an existing one).

### /freeplayer

Removes restraints, bags and unescorts player

{% code title="server.lua" overflow="wrap" lineNumbers="true" %}

```lua
/freeplayer <src>
```

{% endcode %}

Parameter:

* src: `number`
  * `number`: The source of the player (server identifier)

### /placepoint

Places a checkpoint marker for the gang at the player's current location.

{% code title="server.lua" overflow="wrap" lineNumbers="true" %}

```lua
/placepoint <gangId> <checkpointType>
```

{% endcode %}

Parameters:

* `gangId`: `number`
  * The gang id found in your database
* `checkpointType`: `string`
  * `garage` — Places the gang's vehicle garage checkpoint
  * `storage` — Places the gang's storage/stash checkpoint
  * `reserve` — Places the gang's reserve checkpoint

### /removepoint

Removes a checkpoint marker for the gang at the player's current location.

{% code title="server.lua" overflow="wrap" lineNumbers="true" %}

```lua
/removepoint <gangId> <checkpointType>
```

{% endcode %}

Parameters:

* `gangId`: `number`
  * The gang id found in your database
* `checkpointType`: `string`
  * `garage` — Removes the gang's vehicle garage checkpoint
  * `storage` — Removes the gang's storage/stash checkpoint
  * `reserve` — Removes the gang's reserve checkpoint

### /addvehicle

Adds a vehicle to the gang's garage.

{% code title="server.lua" overflow="wrap" lineNumbers="true" %}

```lua
/addvehicle <gangId> <model> <color> <plate>
```

{% endcode %}

Parameters:

* `gangId`: `number`
  * The gang id found in your database
* `model`: `string`
  * The vehicle model/spawn name (e.g. `sultan`, `adder`). This should exist in Config.GarageVehicles
* `color`: `number`
  * The vehicle's primary color index
* `plate`: `string`
  * The license plate to assign to the vehicle

### /delvehicle

Removes a vehicle from the gang's garage.

{% code title="server.lua" overflow="wrap" lineNumbers="true" %}

```lua
/delvehicle <gangId> <model> <color> <plate>
```

{% endcode %}

Parameters:

* `gangId`: `number`
  * The gang id found in your database
* `model`: `string`
  * The vehicle model/spawn name (e.g. `sultan`, `adder`)
* `color`: `number`
  * The vehicle's primary color index
* `plate`: `string`
  * The license plate of the vehicle to remove

### /deletegang

Deletes a gang.

{% code title="server.lua" overflow="wrap" lineNumbers="true" %}

```lua
/deletegang <gangId>
```

{% endcode %}

Parameters:

* `gangId`: `number`
  * The gang id found in your database

### /zonecreator

Opens the map-based zone creator UI.

{% code title="server.lua" overflow="wrap" lineNumbers="true" %}

```lua
/zonecreator
```

{% endcode %}

### /zonecreatorgame

Starts the in-game zone creator, allowing points to be placed directly in the world instead of via the map UI.

{% code title="server.lua" overflow="wrap" lineNumbers="true" %}

```lua
/zonecreatorgame
```

{% endcode %}

### /addpoint

Adds a point to the zone currently being created in-game.

{% code title="server.lua" overflow="wrap" lineNumbers="true" %}

```lua
/addpoint
```

{% endcode %}

### /removelastpoint

Removes the last point added to the zone currently being created in-game.

{% code title="server.lua" overflow="wrap" lineNumbers="true" %}

```lua
/removelastpoint
```

{% endcode %}

### /finishcreatingzone

Finishes and saves the zone currently being created in-game.

{% code title="server.lua" overflow="wrap" lineNumbers="true" %}

```lua
/finishcreatingzone
```

{% endcode %}

### /cancelzonecreator

Cancels the in-game zone creator without saving.

{% code title="server.lua" overflow="wrap" lineNumbers="true" %}

```lua
/cancelzonecreator
```

{% endcode %}

### /deletezone

Deletes an existing gang zone.

{% code title="server.lua" overflow="wrap" lineNumbers="true" %}

```lua
/deletezone <zoneId>
```

{% endcode %}

Parameters:

* `zoneId`: `string`
  * The identifier of the zone to delete
