Agents can also search and read this documentation through its MCP server.
Config
The config file is located at
shared/config.lua.
Config.Framework
Select the framework you use with Config.Framework. 'auto' detects it automatically. If it cannot, set it by hand.
Config.Framework = 'auto' -- 'auto', 'qb', 'qbox', 'esx'
Config.UpdateCheck
Checks for a new version when the resource starts and prints the result to the server console.
Config.UpdateCheck = true
Config.Locale
Select the default language with Config.Locale. Every player can pick their own language in the panel settings. Both the panel and the notifications are translated into all of these languages.
Config.Locale = 'en'
Available Languages
| Value | Language | Value | Language |
|---|---|---|---|
en |
English | ja |
Japanese |
tr |
Turkish | ko |
Korean |
de |
German | pl |
Polish |
fr |
French | pt-br |
Portuguese (Brazil) |
es |
Spanish | ru |
Russian |
it |
Italian | zh-cn |
Chinese (Simplified) |
ar |
Arabic | hi |
Hindi |
Config.Accent
Default menu color in HEX. Players can change it in their own settings.
Config.Accent = '#fa6d0c'
Config.NotifyDuration
How long a notification stays on screen, in milliseconds.
Config.NotifyDuration = 4500
Config.Debug
When enabled, war logs are printed to the server console and the player's F8 console. Turn it on only when looking into a problem.
Config.Debug = false
Config.Command & Config.Key
The command and the default key that open the panel.
Config.Command = {
Name = 'clanwars',
Suggestion = 'Open the Clan Wars panel',
}
Config.Key = {
Enable = true,
Button = 'F7',
}
Settings
| Option | Description |
|---|---|
Command.Name |
Command that opens the panel. |
Command.Suggestion |
Description shown next to the command in chat. false = no suggestion. |
Key.Enable |
false = no key, the panel opens with the command only. |
Key.Button |
Default key that opens the panel. |
Config.Admins
Players who can see the Admin tab. Accepts a citizenid or a player identifier (license:, steam: (hex), fivem:).
Config.Admins = {
'license:0000000000000000000000000000000000000000',
}
Clan Limits
Length limits for clan names, tags and rank names, and the number of pending applications a player can have.
Config.NameLength = { min = 3, max = 24 }
Config.TagLength = { min = 2, max = 4 }
Config.RankNameLength = { min = 2, max = 16 }
Config.MaxApplications = 3
Settings
| Option | Description |
|---|---|
Config.NameLength |
Clan name length, in characters. |
Config.TagLength |
Clan tag length, e.g. [HKN]. The tag cannot be changed later. |
Config.RankNameLength |
Rank name length, in characters. |
Config.MaxApplications |
Most pending applications a player can have at once. |
Config.Death
Select the ambulance script you use. 'auto' detects it automatically. Use 'standalone' if you have no ambulance script.
Config.Death = 'auto'
Supported values: 'p_ambulancejob', 'qb-ambulancejob', 'ps-ambulancejob', 'qbx_medical', 'esx_ambulancejob', 'wasabi_ambulance', 'ars_ambulancejob', 'ak47_ambulancejob', 'tk_ambulancejob', 'standalone'.
Note: If your ambulance script is not listed, add it in
client/bridge.luaandserver/bridge.lua. See the Installation page.
Config.Storage
Clan storage settings. The slot count of each clan level is set by the storage value in Config.Levels.
Config.Storage = {
inventory = 'auto',
weightPerSlot = 10000,
}
Settings
| Option | Description |
|---|---|
inventory |
The inventory you use. 'auto' detects it automatically. |
weightPerSlot |
Capacity per slot, in grams. |
Supported values: 'ox_inventory', 'qb-inventory', 'qs-inventory', 'tgiann-inventory', 'ps-inventory', 'codem-inventory', 'lj-inventory', 'core_inventory', 'origen_inventory', 'mf-inventory', 'ak47_inventory', 'esx_inventory'.
Note:
esx_inventoryhas no stashes, so the clan storage is used from inside the panel. If your inventory is not listed, add it inshared/inventory.lua.
Profile Cosmetics
Players can customize their profile with icons, frames, nameplates and name styles. Every cosmetic group uses the same price options.
Common Settings
| Option | Description |
|---|---|
free |
Items everyone can use for free. |
price |
Price of every other item. |
prices |
Price of a single item, e.g. { [50] = 100000 }. |
currency |
Currency used to buy them: 'coin', 'bank' or 'cash'. |
Config.Avatars
Profile icons.
Config.Avatars = {
count = 50,
free = { 1, 2, 3, 4, 5 },
price = 150,
prices = {},
currency = 'bank',
}
Config.Frames
Profile frames. Some frames are unlocked by kills or by ranking, the others are bought.
Config.Frames = {
general = true,
kills = { 500, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000 },
top = 10,
shop = { count = 48, currency = 'bank', price = 300, prices = {}, free = {} },
}
| Option | Description |
|---|---|
general |
The frame everyone can use. |
kills |
Frames unlocked at these kill counts. |
top |
How many top places of the player ranking get a frame. Lost when the place changes. |
shop |
Frames that are bought. |
Config.Nameplates
The plate behind the player's name.
Config.Nameplates = {
list = {
'blue_01', 'blue_02', 'cyan_01', 'cyan_02', 'gold_01', 'gold_02', 'green_01', 'green_02', 'orange_01',
'orange_02', 'pink_01', 'pink_02', 'purple_01', 'purple_02', 'red_01', 'red_02', 'silver_01', 'silver_02',
},
free = { '' },
price = 150,
prices = {},
currency = 'bank',
}
Config.NameStyles
The font and animated effect of the player's name. The player picks the effect color.
Config.NameStyles = {
fonts = {
'bebas', 'russo', 'cinzel', 'bangers', 'audiowide', 'stencil', 'metal', 'script', 'pixel',
'anton', 'righteous', 'lobster', 'bungee', 'pirata', 'horror',
},
effects = {
'gradient', 'shine', 'neon', 'fire', 'rainbow', 'glitch',
'gold', 'chrome', 'ice', 'lava', 'outline', 'depth', 'flicker', 'electric', 'pulse',
},
free = { 'bebas', 'gradient' },
price = 250,
prices = {},
currency = 'bank',
}
Config.ClanFrames
Frames around the clan emblem.
Config.ClanFrames = {
top = 10,
count = 50,
price = 350,
prices = {},
currency = 'bank',
}
| Option | Description |
|---|---|
top |
How many top places of the clan ranking get a frame. |
count |
Total number of frames. The ones after top are bought. |
Config.Treasury
The clan treasury. War rewards are taken from it and paid into it.
Config.Treasury = {
account = 'bank',
maxTransfer = 100000000,
}
Settings
| Option | Description |
|---|---|
account |
Account used to deposit and withdraw: 'bank' or 'cash'. |
maxTransfer |
Highest amount in one transfer. |
Note: A clan with money in its treasury cannot be disbanded.
Config.Coins
Coins are the script's own currency. Admins can give or take coins with the command.
Config.Coins = {
command = 'clancoin',
}
Usage: /clancoin [player id] [amount]. A negative amount takes coins.
Config.WarHud
Position and default keys of the war HUD.
Config.WarHud = {
boardTop = 25,
keysLeft = true,
keysTop = 42,
keys = {
score = 'F9',
board = 'F10',
feed = 'F11',
keys = 'F6',
},
}
Settings
| Option | Description |
|---|---|
boardTop |
Distance of the scoreboard on the right from the top (%). |
keysLeft |
Shows the key list on the left. |
keysTop |
Distance of the key list from the top (%). |
keys.score |
Key for the score panel at the top. nil = no key. |
keys.board |
Key for the scoreboard. |
keys.feed |
Key for the kill feed. |
keys.keys |
Key for the key list. |
Config.Arena
Settings for the war arenas. Arenas are drawn in game from Admin > Arenas.
Config.Arena = {
bucketBase = 7300,
outsideTime = 15,
maxPoints = 300,
maxSpawns = 50,
screenshot = 'screenshot-basic',
maxDrops = 30,
maxFlags = 5,
maxCaptures = 6,
}
Settings
| Option | Description |
|---|---|
bucketBase |
Routing bucket of a war: bucketBase + war id. |
outsideTime |
A player who leaves the arena dies if not back within this many seconds. |
maxPoints |
Most corners of an arena. |
maxSpawns |
Most spawn points per side. |
screenshot |
Script that takes the arena photo. |
maxDrops |
Most drop points. |
maxFlags |
Most flag points. |
maxCaptures |
Most capture points. |
Note: If another script on your server uses routing buckets starting from
7300, changebucketBaseto avoid conflicts.
Config.Levels
Clan levels. Each level unlocks more members, ranks, storage slots and emblems.
Config.Levels = {
{ maxMembers = 5, maxRanks = 2, storage = 0, price = 0, emblems = { 1, 2, 3, 4, 5 } },
{ maxMembers = 10, maxRanks = 4, storage = 0, price = 50000, emblems = { 6, 7, 8, 9, 10 } },
{ maxMembers = 15, maxRanks = 6, storage = 5, price = 100000, emblems = { 11, 12, 13, 14, 15 } },
{ maxMembers = 20, maxRanks = 8, storage = 10, price = 250000, emblems = { 16, 17, 18, 19, 20 } },
{ maxMembers = 25, maxRanks = 10, storage = 15, price = 500000, emblems = { 21, 22, 23, 24, 25 } },
{ maxMembers = 30, maxRanks = 12, storage = 20, price = 750000, emblems = { 26, 27, 28, 29, 30 } },
{ maxMembers = 35, maxRanks = 14, storage = 25, price = 1000000, emblems = { 31, 32, 33, 34, 35 } },
{ maxMembers = 40, maxRanks = 16, storage = 30, price = 1500000, emblems = { 36, 37, 38, 39, 40 } },
{ maxMembers = 45, maxRanks = 18, storage = 35, price = 2000000, emblems = { 41, 42, 43, 44, 45 } },
{ maxMembers = 50, maxRanks = 20, storage = 40, price = 3000000, emblems = { 46, 47, 48, 49, 50 } },
}
Config.UpgradeCurrency = 'bank'
Settings
| Option | Description |
|---|---|
maxMembers |
Member capacity, leader included. |
maxRanks |
Number of ranks, leader included. |
storage |
Storage slots. 0 = no storage. |
price |
Price to reach that level. |
emblems |
Clan emblems unlocked at that level. |
Config.UpgradeCurrency |
Currency of level upgrades: 'coin', 'bank' or 'cash'. |
Note: The clan creation price, the clan rename price and the season are set in game from the Admin tab.
Config.Features
Clan level at which each feature unlocks.
Config.Features = {
wars = 5,
warRewards = 6,
alliances = 7,
}
| Option | Description |
|---|---|
wars |
Clan wars. |
warRewards |
Wars with a money reward. |
alliances |
Clan alliances. |
Config.DefaultRanks
Ranks created with every new clan. name = nil uses the default "Member" name.
Config.DefaultRanks = {
{ name = nil, color = '#888888', perms = {} },
}
Config.Wars
General war settings and the options offered in the war challenge.
Config.Wars = {
spectate = true,
scoreGoals = { 2, 25, 50, 100 },
timeLimits = { 10, 15, 20, 30 },
zoneDurations = { 10, 15, 20 },
weapons = { 'firearms', 'melee', 'fists' },
maxReward = 1000000,
commission = {
enabled = true,
percent = 3,
},
challengeExpire = 15,
points = {
win = 5,
draw = 1,
loss = -3,
perKill = 0.5,
max = 100,
},
respawnDelay = 5,
spawnProtection = 3,
resultDuration = 15000,
lobbyTimes = { 1, 2, 3, 5, 10 },
lobbyTimeMax = 60,
lobbyTime = 300,
lobbyVote = true,
lobbyKeys = { vote = 'Y', hide = 'U' },
}
Settings
| Option | Description |
|---|---|
spectate |
Players can spectate running wars. |
scoreGoals |
Score war: kills needed to win. |
timeLimits |
Timed war: duration options, in minutes. |
zoneDurations |
Zone war: duration options, in minutes. |
weapons |
Weapon types: firearms, melee (knife / bat) and fists. |
maxReward |
Highest money reward. |
commission |
Both clans stake the reward from their treasury. The winner takes both, minus this percent. |
challengeExpire |
An unanswered challenge expires after this many minutes. |
points |
Clan points after a war: base + kill difference x perKill. max = 0 = no limit. |
respawnDelay |
Time until a dead player respawns, in seconds. |
spawnProtection |
Time a player cannot be killed after respawning, in seconds. |
resultDuration |
How long the result screen stays, in milliseconds. |
lobbyTimes |
Lobby time options offered in the challenge, in minutes. |
lobbyTimeMax |
Longest lobby time that can be typed in, in minutes. |
lobbyTime |
Default lobby time, in seconds. |
lobbyVote |
Enables the "start now" vote. |
lobbyKeys |
Keys to vote and to reopen the lobby screen. |
Config.Zone
Zone (battle royale) war settings. The area shrinks phase by phase and there is no respawn.
Config.Zone = {
teamSizes = { 2, 3, 5, 10 },
dropHeight = 150.0,
dropTime = 40,
firstDelay = 60,
shrinkShare = 0.6,
sizes = { 0.75, 0.55, 0.35, 0.18, 0.0 },
damage = { 2, 4, 6, 9, 14 },
eliminatedReturn = 5,
color = { 70, 150, 255 },
}
Settings
| Option | Description |
|---|---|
teamSizes |
Team sizes, e.g. 5 = 5v5. |
dropHeight |
Parachute drop height, in meters. |
dropTime |
Seconds given to land. |
firstDelay |
Seconds after landing until the zone starts shrinking. |
shrinkShare |
Share of each phase spent shrinking. |
sizes |
Zone radius after each phase, as a ratio. 0 = closed. |
damage |
Health lost per second outside the zone in each phase. |
eliminatedReturn |
Time until an eliminated player is sent back, in seconds. |
color |
Color of the zone wall (RGB). |
Config.Drops
Supply crates that parachute into the arena. What comes out of them is taken back when the war ends.
Config.Drops = {
first = 45,
interval = 90,
maxActive = 3,
fallTime = 12,
contents = {
{ weapon = true, place = { x = 0.0, y = 0.12, z = 0.16, rx = 90.0, ry = 0.0, rz = 0.0 } },
{ item = 'armor', count = 1, label = 'Armor', model = 'prop_armour_pickup', place = { x = -0.32, y = -0.12, z = 0.10, rx = 0.0, ry = 0.0, rz = 0.0 } },
{ item = 'bandage', count = 1, label = 'Heal', model = 'v_ret_ta_firstaid', place = { x = 0.32, y = -0.12, z = 0.08, rx = 0.0, ry = 0.0, rz = 0.0 } },
},
weapons = {
{ name = 'WEAPON_CARBINERIFLE', label = 'Carbine Rifle', ammo = 120 },
{ name = 'WEAPON_ASSAULTRIFLE', label = 'Assault Rifle', ammo = 120 },
{ name = 'WEAPON_SMG', label = 'SMG', ammo = 150 },
{ name = 'WEAPON_PUMPSHOTGUN', label = 'Pump Shotgun', ammo = 24 },
{ name = 'WEAPON_PISTOL50', label = 'Pistol .50', ammo = 48 },
},
removeWeapons = true,
ammoItems = { 'ammo' },
model = 'hkn_crate_body',
lid = 'hkn_crate_lid',
hinge = { x = 0.0, y = 0.315, z = 0.40 },
openTime = 4,
parachute = 'p_cargo_chute_s',
blip = { sprite = 306, color = 5, scale = 0.9 },
smoke = { asset = 'core', name = 'exp_grd_flare', scale = 2.0, z = 0.55, color = { 255, 30, 30 } },
}
Settings
| Option | Description |
|---|---|
first |
Seconds until the first drop. |
interval |
Seconds between drops. |
maxActive |
Most crates at the same time. |
fallTime |
Time a crate takes to land, in seconds. |
contents |
Crate contents. Each one is taken with its own press of E. weapon = true gives a random weapon from weapons; item gives an inventory item. place is the object's position inside the crate. |
weapons |
Weapons a crate can contain. |
removeWeapons |
Drop items are taken back when the war ends. |
ammoItems |
Words found in the names of ammo items. On QBCore, your own ammo loaded into a drop weapon is given back. |
model / lid |
Crate and lid models. |
hinge |
Where the lid is attached. |
openTime |
Time an emptied crate stays, in seconds. |
parachute |
Parachute model. |
blip |
Map blip of the crate. |
smoke |
Smoke rising from the crate until it is opened. |
Config.Loot
The losing side's weapons and items go to the winning clan's storage. Set Config.Loot = nil to turn it off.
Config.Loot = {
weapons = true,
items = { 'bandage', 'armor', 'WEAPON_CARBINERIFLE', 'WEAPON_ASSAULTRIFLE', 'WEAPON_SMG', 'WEAPON_PUMPSHOTGUN', 'WEAPON_PISTOL50' },
keep = {},
}
Settings
| Option | Description |
|---|---|
weapons |
All weapons are taken. |
items |
Other items that are taken. |
keep |
Items that are never taken. |
Config.Modes
Settings for the flag, area and team wars.
Config.Modes = {
maxMinutes = 20,
flagModels = {
small = 'hkn_flag',
smallPole = 'hkn_flagpole',
smallTexture = 'hkn_flag_cloth',
big = 'hkn_flagbig',
bigPole = 'hkn_flagbigpole',
bigTexture = 'hkn_flagbig_cloth',
texture = { aspect = 1.5, emblemSize = 0.62 },
carry = { x = 0.0, y = -0.22, z = -0.05, rx = 0.0, ry = 0.0, rz = -90.0 },
},
flag = {
holdGoals = { 100, 200, 300 },
captureGoals = { 3, 5, 10 },
holdRate = 1,
pickupRadius = 2.5,
captureRadius = 4.0,
returnTime = 30,
},
area = {
goals = { 100, 200, 300 },
rate = 1,
captureTime = 5,
pointRadius = 8.0,
hillRadius = 15.0,
},
team = {
sizes = { 2, 3, 5, 10 },
rounds = { 3, 5, 7 },
roundTime = 180,
firstDelay = 10,
intermission = 10,
prepTime = 10,
},
}
General
| Option | Description |
|---|---|
maxMinutes |
Longest duration of these wars, in minutes. |
flagModels |
Flag and pole models from the stream folder, the cloth texture and the carry position on the back. |
Flag War
| Option | Description |
|---|---|
holdGoals |
Hold the flag: points needed to win. |
captureGoals |
Capture the flag: captures needed to win. |
holdRate |
Points per second while carrying the flag. |
pickupRadius |
Distance to pick up the flag, in meters. |
captureRadius |
Distance to deliver it to the base, in meters. |
returnTime |
Time until a dropped flag returns, in seconds. |
Area War
| Option | Description |
|---|---|
goals |
Points needed to win. |
rate |
Points per second per capture point. |
captureTime |
Time to capture a point, in seconds. |
pointRadius |
Radius of a capture point, in meters. |
hillRadius |
Radius of the king of the hill circle, in meters. |
Team War
| Option | Description |
|---|---|
sizes |
Team sizes, e.g. 2 = 2v2. |
rounds |
Round count options. |
roundTime |
Round time, in seconds. |
firstDelay |
Time to take position before the first round, in seconds. |
intermission |
Wait between rounds, in seconds. |
prepTime |
Time to take position before later rounds, in seconds. |
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending
.mdto page URLs; this page is available as Markdown.