Config options for Trase_Gangs (see config.lua), what they do, and how to modify them safely.
Quick tip: always make a backup of config.lua before making changes in production.
Top-level settings
-
Config.Language(string)- Default:
'en' - Which locale file to use from
locales/(e.g.,en.lua,fr.luaif present). Change to match your supported language.
- Default:
-
Config.Debug(boolean)- Default:
false - When
truethe resource prints verbose debug messages to the server console. Useful while setting up or diagnosing issues.
- Default:
-
Config.InteractionType(string)- Default:
'ox_lib' - Set which interaction system the client uses. Supported values:
ox_liborox_target(choose whichever you have installed).
- Default:
-
Config.Framework(string)- Default:
'auto' - Auto-detects supported frameworks (ESX / QBCore / QBox / Standalone). Change only if you want to explicitly set the framework (e.g.
'ESX'or'QBCore').
- Default:
Commands (Config.Commands)
These are the chat/console commands users and admins can call. Change keys to customize command names:GangManage— defaultgangmanage(opens gang management UI for users in a gang)ServerManagement— defaultgangs(admin-only server management UI)GangLeaderboard— defaultgangleaderboard(opens leaderboard UI)
/leaderboard, edit:
Handler config (Config.Handler)
Controls core gang handling and defaults.-
DefaultMaxMembers(number) — default10- Default maximum members for newly-created gangs.
-
DefaultMaxRanks(number) — default5- Default rank slots created for new gangs.
-
InviteExpiryTime(number) — default3600(seconds)- How long invites remain valid before expiring (seconds).
-
ReputationEnabled(boolean) — defaulttrue- Toggle reputation system.
-
ReputationRewards(table)- Numeric reputation rewards for various victory types (Turf, Drugzone, GangWar). Example:
-
UnlocksEnabled(boolean) — defaulttrue- Allow gangs to purchase unlocks (e.g., storage upgrades, member slots).
-
Unlocks(table) — a map of unlock keys to cost and label, e.g.:
Features (Config.Features)
Each feature block toggles subsystems and config options.Drugzones
Enabled(boolean) — Enable the drugzone game type.Duration(seconds) — How long a drugzone event runs.WinningPoints(number) — Points needed for a win.PointsPerSecond(number) — Points accumulated per second when in control.MarkerType(number) &MarkerColor(table) — Visual markers.Zones(table) — Named zones that includecoords(vector3/vec3),radius, optional NPC spawn data, andKillRewardstable.
config.lua:
Turfs
Enabled(boolean) — Enable turf zones.Duration(seconds) — How long the turf capture takes.Zones— Similar to Drugzones, zones for turfs.KillRewards— Optional kill-based reward tiers.
GangWars
Enabled(boolean) — Enable gang-wars subsystem.KillFeed(boolean) — Show kill feed related to wars.MinWager/MaxWager— Min/max betting values for wagers between gangs.TargetKills— Kills required to win a gang war.
Leaderboards
Enabled(boolean) — Toggle leaderboard systems (server UI & NUI support).
UI (Config.UI)
Controls the NUI appearance and colors. Example values are hex color strings used across the web UI.Colors— A table of color keys used in the front-end (bg_dark, bg_panel, accent, danger, text_primary, border etc.). Edit them to theme the UI. Example:
Tip: You can replace the color palette to quickly switch the theme (a red theme example is included as commented-out code in config.lua).
Notes / Safety
- Changing
DefaultMaxMembers/DefaultMaxRanksaffects newly created gangs only; existing gangs keep their saved values in the DB. - If you disable a feature (e.g.,
Config.Features.Drugzones.Enabled = false) the module won’t be loaded at startup. - Always restart the resource after making changes to
config.luafor them to apply.
If you’d like I can convert this into inline comments inside
config.lua or add a sample server.cfg snippet in a separate EXTRA.md file. Want me to add either?