Skip to main content

Configuration

Config files

The config files are self explanatory.

You can find your config files in client/data.lua and server/data.lua

Translation

If you want to change language or translate the script you just need to modify locale.lua.

Weapons and maps needs to be manually translated in client/data.lua

Add Weapons

If you want to add more game or addon weapons you can add it in client/data.lua inside weapons array.

  • value: weapon id in game (normally, spawn name)
  • label: label you want to appear in the UI

Example:

...

weapons = {
-- Old weapons
{ value = 'WEAPON_APPISTOL', label = 'AP Pistol' },
{ value = 'WEAPON_COMBATPISTOL', label = 'Combat Pistol' },
-- Added weapon
{ value = 'WEAPON_SNSPISTOL', label = 'SNS Pistol' }
},

...

Add Maps

If you want to add more maps or edit current one you can add/edit it in client/data.lua inside maps array.

  • value: weapon id in game (normally, spawn name)
  • label: label you want to appear in the UI

Example:

...

maps = {
-- Included map
{
value = 'skatepark', - -- used for image (must be putted in web/dist/images/maps/) and must be png type
label = 'Skatepark', -- label for the map
coords = {
--spawn coords in map for every player (you must add 5 points to every team)
player = {
vec4(-934.22772216797, -782.9326171875, 15.92115688324 - 0.98, 138.37428283691),
...
},
opponent = {
vec4(-947.94207763672, -800.45281982422, 15.92111492157 - 0.98, 320.18206787109),
...
}
}
},
-- Added
{
value = 'skyscraper', -- used for image (must be putted in web/dist/images/maps/) and must be png type
label = 'Skyscraper', -- label for the map
coords = {
--spawn coords in map for every player (you must add 5 points to every team)
player = {
vec4(-934.22772216797, -782.9326171875, 15.92115688324, 138.37428283691),
...
},
opponent = {
vec4(-947.94207763672, -800.45281982422, 15.92111492157, 320.18206787109),
...
}
}
},
}

...