Skip to content

Installation

Install Cuxial Gang step by step: dependencies, items, convars, staff permission and start order.

Cuxial Gang needs no SQL import. It creates and updates its own tables on every start. You only add the items and the staff permission.

Check the dependencies ​

These resources must be installed and working first:

  • ox_lib
  • oxmysql
  • cuxial_bridge 2.24.1 or later, connected to QBox or QBCore
  • OneSync enabled on the server
  • ox_inventory and a target resource supported by the bridge

Cuxial Gang requires ox_inventory. Organization stashes, extra stashes, supply points, raids on a stash and searching a player are built on it.

Optional resources are listed in the Overview. Install the ones you want before starting Cuxial Gang.

Copy the resource ​

Place the cuxial_gang folder inside your resources directory. Keep the folder name as it is.

Database ​

Nothing to run. On start, the resource creates every cuxial_gang_* table and the two cuxial_extort_* tables, and adds three columns to player_vehicles: gang, configName and vehicleid.

The database user needs permission to create and alter tables.

Add the items ​

Add these items to your inventory. Names can be changed in the file shown in the last column; labels, weights and images are up to you.

ItemUsed forName set in
spray_canPaint a graffitidata/graffiti.lua
spray_removerRemove a graffitidata/graffiti.lua
burnerphonedrugCall a buyer to sell drugsdata/drugselling.lua
crime_tabletOpen the tablet, only with tablet.asItem = trueshared/config.lua
adrenalineRevive a downed player. Only organization members can use itdata/adrenaline.lua
arsenal_blueprintBlueprint handed out when the arsenal levels updata/arsenal.lua
arsenal_barrel, arsenal_frame, arsenal_spring, arsenal_polymer, arsenal_electronicsArsenal partsdata/arsenal.lua
black_moneyDirty moneyFixed
cashClean money paid out by the laundering routeFixed

The drugs listed in data/drugselling.lua and the rewards in data/missions.lua and data/airdrop.lua are examples. Replace them with items that exist on your server.

The resource registers the spray, the remover and the tablet (with tablet.asItem = true) as usable items through the bridge, and the burner phone the same way. If your inventory does not pick that up, point the item at the client export instead. With ox_inventory:

ox_inventory/data/items.lua
lua
['spray_can'] = {
    label = 'Spray can',
    weight = 300,
    client = { export = 'cuxial_gang.useSpray' },
},

['spray_remover'] = {
    label = 'Graffiti remover',
    weight = 300,
    client = { export = 'cuxial_gang.useRemover' },
},

['crime_tablet'] = {
    label = 'Tablet',
    weight = 500,
    client = { export = 'cuxial_gang.openCrimeTablet' },
},

['rope'] = {
    label = 'Rope',
    weight = 200,
    client = { export = 'cuxial_gang.openHandcuffsMenu' },
},

['adrenaline'] = {
    label = 'Adrenaline',
    weight = 100,
    server = { export = 'cuxial_gang.adrenaline' },
},

Use one path per item, not both. The rope item is optional and only works through its export: it opens the same interaction menu as the key. The adrenaline item also works only through its export, which is a server export (server, not client); it is spent when the scene starts, not when it is pressed.

Set the convars and the staff permission ​

All convars are optional.

server.cfg
cfg
# Language of the texts
setr ox:locale "en"

# Discord webhooks: player actions and staff actions
set cuxial_gang_webhook "https://discord.com/api/webhooks/..."
set cuxial_gang_webhook_admin "https://discord.com/api/webhooks/..."

# Steam Web API key, to show staff avatars in the panel
set cuxial_gang_steam_key "YOUR_KEY"

# Debug traces in the console
setr cuxial_gang_debug "0"

The staff panel and its commands check the ACE named in admin.ace, mod by default. Grant it to your staff group:

server.cfg
cfg
add_ace group.mod mod allow
add_principal group.admin group.mod

Webhooks and the Steam key go in server.cfg, never in shared/config.lua. The config only holds the names of the convars.

Start the resource ​

Start Cuxial Gang after its dependencies, your framework and the optional integrations you use:

server.cfg
cfg
ensure ox_lib
ensure oxmysql
# your framework here (qbx_core or qb-core)
ensure ox_inventory
ensure cuxial_bridge
# optional integrations
ensure cuxial_garages
ensure cuxial_medical
ensure cuxial_appearance
ensure cuxial_police
ensure cuxial_gang

Check that it works ​

  1. Join with a staff account and type /crimeadmin. The staff panel opens.
  2. Create an organization and place its boss menu point.
  3. Type /setcrimejob <your id> <organization id> boss. You join as boss.
  4. Walk to the boss menu point and open it.
  5. Type /crimetablet. The tablet opens.

Next: adjust the script to your server in Configuration.

© Cuxial