Commands
Player Commands
all
/criminalqb-coreesx
Opens the Core Gangs UI. Also available via the configured keybind (default: F9).
Usage
lua
/criminalall
/currentzoneqb-coreesx
Prints the zone ID at your current location to the F8 console. Use this when setting up zones.
Usage
lua
/currentzone
-- Output in F8: ZoneID to set in config : 6740admin
/zoneeditorqb-coreesx
Opens the visual zone editor in freecam mode. Create, edit, and configure zones directly on the map.
Usage
lua
/zoneeditorAdmin Commands
All admin commands use the /criminal prefix and require the admin permission group (QB-Core) or admin ACE permission (ESX).
admin
/criminal createorgqb-coreesx
Create a new organization.
| Argument | Type | Description |
|---|---|---|
owner | | Player ID or CitizenID |
name | | Name of the organization |
color | | Hex color code (e.g. '#ff8000') |
Usage
lua
/criminal createorg 1 vagos '#ff8000'admin
/criminal deleteorgqb-coreesx
Permanently delete an organization. This cannot be undone.
| Argument | Type | Description |
|---|---|---|
orgname | | Name of the organization |
Usage
lua
/criminal deleteorg vagosadmin
/criminal setorgqb-coreesx
Assign a player to an organization.
| Argument | Type | Description |
|---|---|---|
id | | Player server ID |
organization | | Name of the organization |
Usage
lua
/criminal setorg 1 vagosadmin
/criminal setownerqb-coreesx
Set a player as the owner of an organization.
| Argument | Type | Description |
|---|---|---|
id | | Player server ID |
organization | | Name of the organization |
Usage
lua
/criminal setowner 1 vagosadmin
/criminal setzoneqb-coreesx
Assign a zone to an organization.
| Argument | Type | Description |
|---|---|---|
id | | Zone ID (from map or /currentzone) |
organization | | Name of the organization |
Usage
lua
/criminal setzone 6740 vagosadmin
/criminal resetzoneqb-coreesx
Reset a zone to its default state — removes organization ownership, resets size and protection level.
| Argument | Type | Description |
|---|---|---|
id | | Zone ID (from map or /currentzone) |
Usage
lua
/criminal resetzone 6740admin
/criminal startwarqb-coreesx
Force-start a war on a zone. Bypasses cooldowns and requirements.
| Argument | Type | Description |
|---|---|---|
id | | Zone ID |
Usage
lua
/criminal startwar 6740admin
/criminal addstatsqb-coreesx
Add criminal stats to yourself. Useful for testing progression titles.
| Argument | Type | Description |
|---|---|---|
stat | | Stat name (kills, headshots, captured, bounties, wars_won, robberies, npcs_killed, plants_picked, drugs_used, drugs_sold) |
amount | | Amount to add |
Usage
lua
/criminal addstats kills 50
/criminal addstats wars_won 5admin
/freePlayerqb-coreesx
Free a player from all control states (restrained, escorted, carried, trunked, hostage, roped). Requires ACE permission command.freePlayer.
| Argument | Type | Description |
|---|---|---|
id | | Player server ID |
Usage
lua
/freePlayer 1Integration Callbacks
Core Gangs provides an onWarEnd callback in server/integration_main.lua for hooking into war results:
lua
function onWarEnd(winnerInfo, loserInfo)
-- winnerInfo: { organization, score, playersInvolved }
-- loserInfo: { [orgName] = { organization, score, playersInvolved } }
endINFO
The playersInvolved table maps player identifiers to their individual scores during the war.
