Cube Scripts

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

Note

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#

CategorySupported
FrameworkESX, QBCore, Qbox, standalone
Databaseoxmysql, mysql-async, ghmattimysql
Targetox_target, qb-target, built-in [E] interaction
Inventoryox_inventory, qb-inventory (ps / lj), qs-inventory, codem-inventory, tgiann-inventory, core_inventory, mf-inventory, Chezza, framework inventory
Dispatchcd_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:

PathEditable
config.luaYes
locale/*.luaYes
client/custom.luaYes
client/framework/*.lua, server/framework/*.luaYes
client/inventory/*.lua, server/inventory/*.luaYes
client/dispatch/*.lua, server/dispatch/*.luaYes
server/database/bridge.luaYes
server/webhooks.luaYes
ui/No (compiled interface)
Tip

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#