Skip to main content

Quick References

Commands and common integration patterns for Wasabi Gang Creator (wasabi_gangs).


Commands​

CommandWhoDescription
/gangcreator (/crimecreator)StaffOpens the creator: organizations, bases, territories, taxing, vehicle store, season pass and PvP battles.
/gangmenuMembers with Access Boss MenuOpens the boss menu.
/gangtabletMembersOpens the gang tablet.
/gangactions (default key F6)MembersOpens the radial action menu. The key can be rebound in the FiveM key settings.
/gangcamsMembers with the Management categoryOpens the security camera viewer.
/graffitiMembersStarts a graffiti (the spray_can item does the same).
/cleangraffitiAnyone with a cleanerRemoves the nearest graffiti (the spray_cleaner item does the same).
/cancellaunderMembersCancels the running laundering job.
/warhudMembersCollapses 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​

GroupFlags
Accessaccess_wardrobe, access_stash, access_charge, access_vault, access_boss_menu
Managementmanage_members, manage_ranks, manage_finance, set_locations, buy_upgrades, use_garage, purchase_vehicle, start_war, take_missions, claim_season, launder
Boss menu categoriescat_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-target or sleepless_interact, or set interact.target.
  • Graffiti cannot be placed. Tags are only placed on flat, wide walls close to the player and at least graffiti.minDistance from 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 = true to show them to staff as well.