Skip to content

Commands

Core Gangs includes player and admin 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 in config.lua.

Usage
lua
/currentzone
-- Output in F8: ZoneID to set in config : 6740

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.