Cube Gang
Gangs, custom ranks, territories, drug selling and a live map of every zone.
A complete gang system for FiveM. Create organisations from an in-game admin panel, draw territories on the map, and let gangs fight for them through drug sales, presence, kills and robberies.
Everything is saved to your database automatically - there is no .sql file to
Cube Gang detects your framework, target, inventory, dispatch and database on start. On most servers you only have to start it.
Features#
- Organisations - gangs, mafias, MCs and cartels with their own color, logo,
member limit and treasury.
- Custom ranks - unlimited ordered ranks with per-point permissions (boss
menu, stash, garage, treasury) and optional inheritance.
- Owner - every gang has a real owner who can transfer the ownership or
disband the organisation.
- Gang points - boss menu, stash, treasury and garage, placed in game with a
live preview.
- Territories - polygon zones drawn in game or directly on the map, with
influence, contestation, decay and automatic ownership.
- Live map - every territory rendered on the minimap and the pause map with
the gang color and logo, plus a hover card with influences and drug demand.
- Drug selling - ped targeting, police reports, dispatch integration, price
multipliers per territory and a drug demand that changes over time.
- Influence sources - presence, kills and robberies, each one configurable.
- Score & ranking - points history, leaderboard and hourly territory income.
- Admin creator - create and edit gangs, ranks, members, points, money and
territories from a single interface.
- Developer API - exports and events to plug any script into the gang
economy.
Compatibility#
| Category | Supported |
|---|---|
| Framework | ESX, QBCore, Qbox, standalone |
| Database | oxmysql, mysql-async, ghmattimysql |
| Target | ox_target, qb-target, built-in [E] interaction |
| Inventory | ox_inventory, qb-inventory (ps / lj), qs-inventory, codem-inventory, tgiann-inventory, core_inventory, mf-inventory, Chezza, framework inventory |
| Dispatch | cd_dispatch, ps-dispatch, qs-dispatch, core_dispatch, rcore_dispatch, codem-dispatch, origen_police, lb-tablet, built-in |
Escrow#
The resource is escrow protected. Every file you may need to adapt to your server is left open:
| Path | Editable |
|---|---|
config.lua | Yes |
locale/*.lua | Yes |
client/custom.lua | Yes |
client/framework/*.lua, server/framework/*.lua | Yes |
client/inventory/*.lua, server/inventory/*.lua | Yes |
client/dispatch/*.lua, server/dispatch/*.lua | Yes |
server/database/bridge.lua | Yes |
server/webhooks.lua | Yes |
ui/ | No (compiled interface) |
Need a change inside a protected file or the interface? Open a ticket on our Discord - we take feature requests and can often ship them in the next update.
Security#
Discord webhooks live in server/webhooks.lua, a server script. It is never sent to a client. Every action that changes data - ranks, members, treasury, territories - is validated on the server: permissions, rank hierarchy, distance to the gang point and ownership.
Requirements#
- A FiveM server with OneSync enabled
- ox_lib
- A database resource: oxmysql, mysql-async or ghmattimysql
Next steps#
- Installation - get it running in a few minutes
- Configuration - the most important options
- Territories - how influence and ownership work
- Server API - integrate it with your own resources