Installation
Install Cube Gang and create your first organisation in a few minutes.
Download the resource#
After your purchase, the resource is delivered to your CFX account. Download it from the CFX Portal, under Granted assets.
Sign in with the same CFX.re account you used at checkout. If the asset is not listed, open a ticket on our Discord and we will look into it.
Unzip the folder into your server's resources directory. There is nothing to build - the interface ships already compiled in ui/build/.
Keep the folder named cube_gang. Exports and events in your other scripts use the resource name, for example exports.cube_gang:GetPlayerGang(source).
Add it to your server.cfg#
ensure oxmysql
ensure ox_lib
ensure es_extended # or qb-core / qbx_core
ensure ox_target # optional
ensure ox_inventory # optional
ensure cube_gangStart Cube Gang after your framework, target and inventory so it can detect them.
Grant admin access#
The creators (/gangcreator and /zonecreator) are restricted to admins. Access is granted by an ace permission or a framework group.
add_ace group.admin cubegang.admin allow
add_principal identifier.fivem:1234567 group.adminConfig.AdminAce = 'cubegang.admin'
Config.AdminGroups = { 'admin', 'superadmin', 'god' }Start the server#
On the first start, Cube Gang checks your database and creates everything it needs:
- the
cube_gangs,cube_gang_ranks,cube_gang_points,cube_gang_treasury,cube_gang_zones,cube_gang_zone_influenceandcube_gang_drug_salestables - a
cube_gangcolumn in your player table (userson ESX,playersonQBCore and Qbox) that stores the gang of each character
Every table and column is checked before being created, so restarting the resource or updating it never touches your existing data.
With Config.Debug = true you will see what was detected:
[cube_gang] Started | Framework: esx | Target: ox_target | Inventory: ox_inventory | Dispatch: builtin | Database: oxmysql
[cube_gang] Loaded 0 gangs and 0 territoriesCreate your first gang#
Run the creator in game:
/gangcreator- Click New organisation, pick a name, a type, a color and a logo.
- Adjust the ranks and their permissions.
- Place the gang points (boss menu, stash, treasury, garage).
- Pick the leader among the online players and save.
Draw your first territory#
Open the Territories page of the creator and click New zone to draw it on the map, or Create in game to draw it with the free camera.
/zonecreatorSee Territories to understand how gangs take control of a zone.
Gang logos#
A logo can be a direct link (https://...png) or a file name. Files are loaded from:
cube_gang/ui/build/assets/images/logos/Drop ballas.png in that folder and type ballas.png in the logo field. A square PNG with a transparent background gives the best result on the map.