Quick References
Commands and common integration patterns for Wasabi Gang Creator (wasabi_gangs).
Commands
| Command | Who | Description |
|---|---|---|
/gangcreator (/crimecreator) | Staff | Opens the creator: organizations, bases, territories, taxing, vehicle store, season pass and PvP battles. |
/gangmenu | Members with Access Boss Menu | Opens the boss menu. |
/gangtablet | Members | Opens the gang tablet. |
/gangactions (default key F6) | Members | Opens the radial action menu. The key can be rebound in the FiveM key settings. |
/gangcams | Members with the Management category | Opens the security camera viewer. |
/graffiti | Members | Starts a graffiti (the spray_can item does the same). |
/cleangraffiti | Anyone with a cleaner | Removes the nearest graffiti (the spray_cleaner item does the same). |
/cancellaunder | Members | Cancels the running laundering job. |
/warhud | Members | Collapses or expands the war scoreboard while a war is running. |
Command names can be changed or disabled in config/shared/config.lua.
Server console
wgadmin is available from the server console only:
wgadmin list
wgadmin info <orgId>
wgadmin create <label> <#color> [owner]
wgadmin addmember <orgId> <identifier> [name]
wgadmin removemember <orgId> <identifier>
wgadmin setowner <orgId> <identifier>
wgadmin setrank <orgId> <identifier> <rankId>
wgadmin money <orgId> <amount> [clean|dirty]
wgadmin player <serverId>
wgadmin delete <orgId>
Organizations
Get the player's organization (server)
local org = exports['wasabi_gangs']:GetPlayerOrganization(source)
if org then
print(org.label, org.rank, org.isOwner)
end
Check a rank permission (server)
if exports['wasabi_gangs']:HasOrgPermission(source, 'manage_finance') then
-- ...
end
Read the local organization (client)
local org = exports['wasabi_gangs']:GetPlayerOrg()
Territories
-- Server: territory at a position
local territory = exports['wasabi_gangs']:GetTerritoryAt(GetEntityCoords(GetPlayerPed(source)))
-- Client: territory the player stands in
local current = exports['wasabi_gangs']:GetCurrentTerritory()
Restraint state
-- Server
local cuffed, headbagged = exports['wasabi_gangs']:IsPlayerRestrained(source)
-- Client
local cuffed = exports['wasabi_gangs']:IsPlayerCuffed()
Rank permission flags
| Group | Flags |
|---|---|
| Access | access_wardrobe, access_stash, access_charge, access_vault, access_boss_menu |
| Management | manage_members, manage_ranks, manage_finance, set_locations, buy_upgrades, use_garage, purchase_vehicle, start_war, take_missions, claim_season, launder |
| Boss menu categories | cat_members, cat_ranks, cat_finance, cat_garage, cat_vehicle_store, cat_management |
Troubleshooting
- Target points show as ground markers. No target resource was found. Start
ox_target,qb-targetorsleepless_interact, or setinteract.target. - Graffiti cannot be placed. Tags are only placed on flat, wide walls close to the player and at least
graffiti.minDistancefrom other graffiti. - Steal is greyed out in the radial. Robbing requires a gun in hand (
actions.steal.requireWeapon). - Cuff or steal is refused. The target must have their hands up, be cuffed or be downed (
actions.cuff.requireState,actions.steal.requireState). - Turfs are not on the map. Territory areas and notices are shown to organization members only; set
territories.showToAdmins = trueto show them to staff as well.