Skip to content

Commands

Player Commands

all/criminal
qb-coreesx

Opens the Core Gangs UI. Also available via the configured keybind (default: F9).

Usage
lua
/criminal
all/currentzone
qb-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 : 6740
admin/zoneeditor
qb-coreesx

Opens the visual zone editor in freecam mode. Create, edit, and configure zones directly on the map.

Usage
lua
/zoneeditor

Admin Commands

All admin commands use the /criminal prefix and require the admin permission group (QB-Core) or admin ACE permission (ESX).

admin/criminal createorg
qb-coreesx

Create a new organization.

ArgumentTypeDescription
ownerPlayer ID or CitizenID
nameName of the organization
colorHex color code (e.g. '#ff8000')
Usage
lua
/criminal createorg 1 vagos '#ff8000'
admin/criminal deleteorg
qb-coreesx

Permanently delete an organization. This cannot be undone.

ArgumentTypeDescription
orgnameName of the organization
Usage
lua
/criminal deleteorg vagos
admin/criminal setorg
qb-coreesx

Assign a player to an organization.

ArgumentTypeDescription
idPlayer server ID
organizationName of the organization
Usage
lua
/criminal setorg 1 vagos
admin/criminal setowner
qb-coreesx

Set a player as the owner of an organization.

ArgumentTypeDescription
idPlayer server ID
organizationName of the organization
Usage
lua
/criminal setowner 1 vagos
admin/criminal setzone
qb-coreesx

Assign a zone to an organization.

ArgumentTypeDescription
idZone ID (from map or /currentzone)
organizationName of the organization
Usage
lua
/criminal setzone 6740 vagos
admin/criminal resetzone
qb-coreesx

Reset a zone to its default state — removes organization ownership, resets size and protection level.

ArgumentTypeDescription
idZone ID (from map or /currentzone)
Usage
lua
/criminal resetzone 6740
admin/criminal startwar
qb-coreesx

Force-start a war on a zone. Bypasses cooldowns and requirements.

ArgumentTypeDescription
idZone ID
Usage
lua
/criminal startwar 6740
admin/criminal addstats
qb-coreesx

Add criminal stats to yourself. Useful for testing progression titles.

ArgumentTypeDescription
statStat name (kills, headshots, captured, bounties, wars_won, robberies, npcs_killed, plants_picked, drugs_used, drugs_sold)
amountAmount to add
Usage
lua
/criminal addstats kills 50
/criminal addstats wars_won 5
admin/freePlayer
qb-coreesx

Free a player from all control states (restrained, escorted, carried, trunked, hostage, roped). Requires ACE permission command.freePlayer.

ArgumentTypeDescription
idPlayer server ID
Usage
lua
/freePlayer 1

Integration 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 } }
end

INFO

The playersInvolved table maps player identifiers to their individual scores during the war.