Skip to content

Configuration

Every option of Cuxial Gang: shared/config.lua block by block and the files in data/.

Cuxial Gang is configured in three places: shared/config.lua for general behaviour, one file per activity in data/, and the staff panel for everything that lives in the database. Restart the resource after editing a file.

Locations, organizations, the vehicle catalogue, upgrade prices, season pass rewards, turf zones, racketeering points, favelas and airdrop sites are not in any file. Staff edit them in game with /crimeadmin.

shared/config.lua ​

General ​

OptionTypeDefaultWhat it does
debugbooleanfalseDebug traces in the console. Also enabled with setr cuxial_gang_debug 1.
ui.accentstringconfigurableAccent colour of the staff panel and the HUDs, in hex. The boss menu and the tablet use the colour of each organization.
admin.acestring'mod'ACE that opens the staff panel and allows its commands. Checked on the server every time.
live.enabledbooleantrueOpen windows refresh on their own when their data changes.
live.debounceMsnumber400Changes to the same block inside this window, in milliseconds, are announced once.
timeZonestring'UTC'Time zone of the server, as an IANA name such as Europe/Madrid. Used by schedules and the season pass.
timeApistringa public time APIURL asked for the real time of timeZone on start; %s is replaced by the zone. It must return JSON with dateTime or datetime in ISO format. Empty string = use the machine clock.
currencytable{ currency = 'USD', style = 'currency', format = 'en-US' }Money format in the interface. currency is the ISO code and format the locale.

commands ​

Each entry is { name = '...', restricted = '...' }.

OptionTypeDefaultWhat it does
namestring | falsesee CommandsName of the command. false removes the command.
restrictedstring | false'group.mod' or 'group.admin'Group that sees and can run the command. The ACE in admin.ace is checked on top of it.

The entries are panel, resetStats, addVehicle, fireMember and setGang.

org ​

OptionTypeDefaultWhat it does
accessMethodstring'none''none': headquarters are in the open world.
markerSizenumber1.2Size of the headquarters markers.
markerColortable{ r, g, b }Colour of the headquarters markers.
defaultSlotsnumber2Rank and member slots of a new organization.
ranksLimitnumber5Maximum ranks reachable with upgrades.
membersLimitnumber20Maximum members reachable with upgrades.
defaultStashWeightnumber2Stash capacity of a new organization, in kg.
stashCapacityUpgradePernumber5Kg added by each stash upgrade.
limitBossMenubooleanfalsetrue: only one member at a time inside the boss menu of an organization.
useDirtyMoneyInBossMenubooleanfalsetrue: upgrades are paid with dirty money instead of the clean balance. The premium season pass is always paid from the clean balance.

garage ​

OptionTypeDefaultWhat it does
disabledbooleanfalsetrue: no organization garage at all.
hideMarkerbooleanfalsetrue: hides the garage marker at the headquarters.
radiusnumber4.0Metres around the garage point from which it can be opened.
heightnumber5.0Maximum height difference, in metres, to open the garage within that radius.
sellPercentagenumber20Percentage lost when an organization sells a vehicle.
nearbyMembersRadiusnumber30.0Metres. With a member closer than this, the tow truck does not take the vehicle.
idleMinutesnumber5Minutes a vehicle must be empty before it can be towed.
noticeSecondsnumber60Warning to the last driver before the tow. If someone gets in, the tow is cancelled.
maxTowSpeednumber1.0Speed in m/s above which the vehicle counts as moving and is not towed.
recover.costnumber5000Price to get back a destroyed or missing vehicle at once.
recover.payFromstring'org'Who pays: 'org' (the organization's balance) or 'player' (whoever asks).
returnOnRestartbooleantruetrue: vehicles that were out when the server restarted go back to the garage for free. false: they show as destroyed and are recovered by paying.

tablet and seasonPass ​

OptionTypeDefaultWhat it does
tablet.asItembooleanfalsetrue: the tablet opens with the item and the command does not exist. false: it opens with the command.
tablet.commandstring'crimetablet'Command that opens the tablet.
tablet.itemstring'crime_tablet'Item that opens the tablet.
tablet.missionsPerRestartnumber8Missions drawn on each restart.
tablet.disableSeasonPassbooleanfalseHides the season pass.
tablet.disableRankingbooleanfalseHides the ranking.
tablet.disableDarkChatbooleanfalseTurns the dark chat off.
seasonPass.customCurrencybooleanfalsefalse: the premium track is bought with the clean balance of the organization. true: the pass shows its own currency instead of money and the premium track is not on sale.
seasonPass.customCurrencyLabelstring'CT'Name of that currency.

blips ​

OptionTypeDefaultWhat it does
scalenumber0.8Size of the blips.
showOnMapbooleantrueShows the blips of headquarters, garages, medic, laundering and favelas.
showZonesOnMapbooleantrueShows the blips of the capture zones.
medic, organisation, zone, garage, port, helipad, moneyLaundry, laundryStoptable{ id, color }Sprite and colour of each kind of blip.
laundryRadiustable{ color, alpha, radius }Area drawn around a laundering stop.

zones ​

OptionTypeDefaultWhat it does
disabledbooleanfalsetrue: no capture zones.
tickSecondsnumber1How often the server counts who is inside each zone.
cooldownMinutesnumber15Minutes until a captured zone can be contested again.
captureExpnumber150Experience for capturing a zone.
listtableexamplesThe zones: label, a unique index, coords for the blip and the points of the polygon. The two included are examples to replace.

turf ​

OptionTypeDefaultWhat it does
disabledbooleanfalsetrue: no turf zones.
disableEnterNotificationsbooleantruefalse: notifies the player on entering and leaving a turf zone.
activityWindowtable{ enabled = false, start = '23:00', finish = '11:00' }Hours in which turf activities count, in server time. It may cross midnight.
rivalry.disabledbooleanfalsetrue: organizations cannot declare wars.
rivalry.startPricenumber5000Price of declaring a war.
rivalry.durationHoursnumber1Hours a declared war lasts.
rivalry.ownershipHoursnumber24Hours the ownership lasts, only with control.enabled = false.
rivalry.winExpnumber250Experience for winning a war.
rivalry.bonusMultipliernumber0.5During a war, this fraction of the price of each sale is added to the war score of the seller's organization.
drugSelling.expPerSalenumber15Experience per sale.
drugSelling.loyaltyPerSalenumber50Loyalty gained per sale in the zone.
drugSelling.loyaltyLossForOthersnumber15Loyalty the other organizations lose per sale.

turf.control ​

Zone control decided by sales. With enabled = false, ownership simply expires after rivalry.ownershipHours.

OptionTypeDefaultWhat it does
enabledbooleantrueTurns zone control on.
windowDaysnumber3Moving window, in days, used to decide owner and conflict level.
claimUnitsnumber40Units an organization must sell to take a zone with no owner.
disputedUnitsnumber15Units from a rival that make the zone disputed (level 1).
hotRationumber0.6Level 2: the rival reaches this fraction of the owner's sales.
takeoverMarginnumber0.15Level 3: the rival beats the owner by this margin and a war opens.
warHoursnumber2Hours of a war opened by zone control.
abandonDaysnumber7Days with no sales after which the zone loses its owner.
minOwnerOnlinenumber1Members of the owner online for a war to start.
sweepCronstring'*/10 * * * *'Cron of the periodic review that lowers levels as sales leave the window.
rankingPointsPerZonenumber50Ranking points per controlled zone.

turf.sales ​

OptionTypeDefaultWhat it does
maxUnitsPerHournumber40Units that score per character and hour. Anything above is sold but does not count.
ownZoneMultipliernumber1.0Price multiplier in your own zone.
enemyZoneMultipliernumber1.2Price multiplier in an enemy zone.
disputedMultipliernumber1.1Price multiplier in a disputed zone.
graffitiPointsMultipliernumber1.5Points bonus with your own graffiti nearby.
graffitiPriceMultipliernumber1.1Price bonus with your own graffiti nearby.
taxPercentnumber10Percentage of each foreign sale generated as dirty money for the owner.
hotAlertMultipliernumber1.5From level 2, multiplies the chance of a police alert.
hotRejectMultipliernumber1.5From level 2, multiplies the chance of the buyer backing out.
alertWindowMinutesnumber30Window used to count a seller's streak in a zone.
alertRadiusAfternumber3Sales in a row after which the owner gets an area on the map.
alertPreciseAfternumber5Sales in a row after which the area becomes precise.
alertRadiusnumber300.0Radius of the wide area, in metres.
alertPreciseRadiusnumber70.0Radius of the precise area, in metres.
alertBlipSecondsnumber90Seconds the area stays on the map.

rope, logs, steam, retention ​

OptionTypeDefaultWhat it does
rope.enabledbooleantrueTurns the interaction menu on players on.
rope.keybind.enabledbooleantrueRegisters a key for the menu.
rope.keybind.keystring'F6'Default key. Each player can rebind it.
logs.generalstring'cuxial_gang_webhook'Name of the convar with the webhook for player actions.
logs.adminstring'cuxial_gang_webhook_admin'Name of the convar with the webhook for staff actions.
steam.convarstring'cuxial_gang_steam_key'Name of the convar with the Steam Web API key, for staff avatars.
retention.playerActionsDaysnumber30Days member history is kept. 0 = never purge.
retention.adminLogsDaysnumber90Days staff logs are kept. 0 = never purge.
retention.extortionMessagesDaysnumber30Days phone extortion messages are kept. 0 = never purge.
additionalScripts.kq_shellcreatorbooleanfalsetrue: waits for the collision around the player to load when the organization loads. For headquarters inside generated interiors.

Files in data/ ​

Each file configures one activity and starts with a comment describing every option. Coordinates, item names, models and prices inside them are examples to adapt.

FileWhat it configuresMain switch (default)
adrenaline.luaAdrenaline: item, scene used, distance, relapse risk, use limits and preview commands—
airdrop.luaSchedule, phases, guards, tiers, default sites and lootenabled = true
arsenal.luaBench type, levels, weekly quotas, recipes created on first start, parts and the dealerenabled = true
blackMedic.luaClandestine medic: healing time, cooldown, price and NPCDisable = false
clothing.luaCloakroom and the outfit worn on the laundering routeClothing.enable = true
drugselling.luaSellable drugs and prices, buyers, cooldown, police alert, rejection chance, burner item—
extortion.luaPhone extortion of civilians: victims, keywords and replies—
extortionFixers.luaIntermediaries who sell hostages: prices, delivery points and replies—
favelas.luaCapture times, ownership, limits, bench type and blipenabled = true
graffiti.luaItems, cooldowns, lifetime, loyalty, experience, size and forbidden surfacesdisabled = false
helipad.luaHelipadsDisable = false
hostageControl.luaNPC hostage menu, follow behaviour and animations—
interactionMenu.luaRanges of each action on a player, blocked controls and handcuff presets—
missions.luaMission catalogue: text, experience, reward and conditions—
moneyLaundry.luaOffice, van, stops, amount per stop and commissionDisable = false
mulas.luaMule slots, recruiting, trust, contract limits and step commandDisable = false
ports.luaPorts and their NPCDisable = false
racketeering.luaCooldown, experience and blip of collection points—
raids.luaPolice raids: jobs, schedule, cooldowns, what can be seizedenable = false
supply.luaCartel supply points: stock, passive sales, robbery and seizureenabled = true

data/adrenaline.lua ​

OptionTypeDefaultWhat it does
use.itemstring'adrenaline'Item used on the downed player.
use.optionstring'g'Scene played when the item is used, from 'a' to 'g'. Each one is defined in options and can be watched first with its preview command.
use.distancenumber2.5Metres to the nearest downed player.
use.readyTimeoutMsnumber10000Milliseconds for both players to get the scene ready. Otherwise it is cancelled.
use.sceneTimeoutMsnumber30000Maximum scene length, in milliseconds.
use.minSceneMsnumber5000Minimum scene length, in milliseconds. A shorter scene is cancelled.
use.risk.chancenumber50Chance (0-100) that the revived player relapses. 0 removes the relapse.
use.risk.delayMinnumber5Minutes after the revive until the relapse.
use.limits.gangEnabledbooleantrueEnables the per-gang limit.
use.limits.gangMax / gangWindowMinnumber3 / 30Uses per gang within a window of minutes.
use.limits.memberEnabledbooleantrueEnables the per-member limit.
use.limits.memberMax / memberWindowMinnumber1 / 15Uses per member within a window of minutes.
commandstableadr_a … adr_g, stop = 'adr_stop'Names of the preview command of each scene and of the one that stops it.
restrictedstring'group.admin'Group that sees and can type the preview commands.
permissionstring'admin'Framework permission, checked through cuxial_bridge, for the previews and for saving the limits in the staff panel.
npc.modelstabletwo modelsNPC that plays the partner in the preview.
prop.modelstabletwo modelsSyringe held in the hand, in order of preference.

use.limits are the starting values: once saved in the staff panel, the panel values apply. options, scene, sceneModels and prop.bone, offset and rotation define the animations and object placement of each scene; you do not need to touch them to switch scene.

In airdrop.lua, startCommand and testCommand are { enabled, name, permission }. permission is the framework permission each command requires, 'admin' by default, checked through cuxial_bridge.

In drugselling.lua the drugs table is an allow-list: an item that is not in it cannot be sold, and its price always comes from that table.

Common changes ​

Open the tablet with an item ​

shared/config.lua
lua
tablet = {
    asItem = true,
    item = 'crime_tablet',
    -- ...
},

The command stops existing. Add the item to your inventory as shown in Installation.

Enable police raids ​

data/raids.lua
lua
enable = true,
allowedJobs = {
    police = { minimumGradeToStart = 2 },
},
requireDuty = true,

Change the staff permission ​

shared/config.lua
lua
admin = {
    ace = 'gangadmin',
},
server.cfg
cfg
add_ace group.admin gangadmin allow

Also review commands.*.restricted so the group that sees each command matches.

Set the drugs and prices of your server ​

data/drugselling.lua
lua
drugs = {
    joint = 35,
    weed_brick = 60,
},

Change the money format ​

shared/config.lua
lua
currency = { currency = 'EUR', style = 'currency', format = 'es-ES' },

© Cuxial