Config File Descriptions
Config = {}
local currentlocale = "en" -- tr | en
Config.WipeData = true -- Should the scoreboard reset when the event ends?
Config.RespawnTime = 3 -- Respawn time in seconds.
Config.ExitCoords = vector3(248.29, -205.92, 53.99) -- Exit Spawn Coords
Config.Ox = true -- It should remain true for now.
Config.KeyMapKey = "H" -- The key to open the menu.
Config.KillPoint = 1 -- The number of points awarded per kill.
Config.DontMinus = false -- Should the score go negative?
Config.RefreshDataTime = 3000 -- The data refresh time in seconds.
Config.RefreshTime = 1000 -- The refresh time in seconds.
Config.DeathCam = true -- Should the death camera be enabled?
Config.DeathCount = 2 -- How many times a player has to die before the score decreases.
Config.DeathPoint = 1 -- How many points should be deducted after dying that many times?
Config.Group = "god" -- The permission to open the admin menu.
Config.Command = "warzone" -- player command
Config.Admincommand = "warzoneadmin" -- admin command
Config.Locations = {
["airport"] = {
label = "Airport", -- Map Name
centerCoords = vector3(-1055.29, -2792.71, 44.56), -- Center Coords
HiddenCoords = vector3(-1075.30, -2799.84, 44.69), -- Hidden Coords
centerRange = 1000.0, -- Range
coords = {
vector3(-1108.60, -2732.31, 44.56), -- Spawn locations
vector3(-1078.54, -2718.38, 44.56),
vector3(-1049.93, -2737.74, 44.56),
vector3(-1031.18, -2746.38, 44.56),
vector3(-1002.93, -2761.54, 44.56),
vector3(-989.38, -2780.05, 44.56),
vector3(-998.92, -2795.18, 44.56),
vector3(-1008.57, -2816.86, 44.56),
vector3(-1030.89, -2852.44, 44.56),
vector3(-1022.24, -2840.54, 44.56),
vector3(-1055.25, -2856.41, 44.56),
vector3(-1091.99, -2834.41, 44.56),
vector3(-1126.16, -2812.10, 44.56),
vector3(-1142.89, -2788.37, 44.56),
vector3(-1133.92, -2774.70, 44.56),
vector3(-1123.91, -2753.15, 44.56),
vector3(-1109.02, -2730.80, 44.56),
vector3(-1068.92, -2750.81, 44.56),
vector3(-1083.55, -2775.98, 44.56),
vector3(-1100.06, -2803.36, 44.56),
vector3(-1062.35, -2822.88, 44.56),
vector3(-1047.50, -2796.02, 44.56),
vector3(-1031.11, -2767.49, 44.56),
vector3(-1021.27, -2793.32, 44.56),
vector3(-1038.30, -2822.69, 44.56),
vector3(-1056.88, -2770.19, 44.56),
}
},
["farmhouse"] = {
label = "Farm House",
centerCoords = vector3(1450.21, 1117.44, 114.34),
HiddenCoords = vector3(1446.14, 1136.69, 114.34),
centerRange = 1000.0,
coords = {
vector3(1500.18, 1187.99, 114.12),
vector3(1469.52, 1161.96, 114.26),
vector3(1441.22, 1162.01, 114.34),
vector3(1441.76, 1147.13, 114.33),
vector3(1470.65, 1147.10, 114.30),
vector3(1493.06, 1128.69, 114.34),
vector3(1497.58, 1107.42, 114.33),
vector3(1483.83, 1114.96, 114.34),
vector3(1486.64, 1082.68, 114.33),
vector3(1513.67, 1039.38, 114.22),
vector3(1486.18, 1039.69, 114.24),
vector3(1460.82, 1043.77, 114.33),
vector3(1439.93, 1041.11, 114.15),
vector3(1409.66, 1085.19, 114.33),
vector3(1405.64, 1118.51, 114.84),
vector3(1366.61, 1147.71, 113.76),
vector3(1389.30, 1154.48, 114.33),
vector3(1402.56, 1173.27, 114.33),
vector3(1427.68, 1176.13, 114.09),
vector3(1464.28, 1135.20, 114.33),
vector3(1459.25, 1082.79, 114.33),
vector3(1411.66, 1127.12, 114.34),
vector3(1425.54, 1141.22, 114.34),
}
},
["humanlabs"] = {
label = "Human Labs",
centerCoords = vector3(3533.00, 3721.21, 36.45),
HiddenCoords = vector3(3604.05, 3615.05, 41.34),
centerRange = 1000.0,
coords = {
vector3(3458.09, 3768.57, 30.40),
vector3(3484.45, 3812.86, 30.43),
vector3(3489.40, 3749.24, 36.64),
vector3(3502.79, 3744.08, 36.65),
vector3(3512.34, 3755.84, 29.98),
vector3(3534.25, 3739.13, 36.68),
vector3(3599.31, 3756.95, 29.92),
vector3(3609.64, 3809.55, 29.67),
vector3(3604.56, 3732.93, 36.64),
vector3(3593.02, 3696.14, 36.64),
vector3(3567.25, 3705.35, 36.64),
vector3(3550.73, 3702.74, 36.64),
vector3(3523.18, 3698.92, 33.89),
vector3(3496.73, 3704.37, 33.89),
vector3(3468.46, 3724.97, 36.64),
vector3(3458.08, 3710.43, 31.49),
vector3(3447.41, 3720.40, 30.72),
vector3(3485.76, 3695.32, 33.89),
vector3(3584.94, 3653.75, 33.89),
vector3(3592.28, 3642.77, 41.34),
vector3(3586.09, 3623.90, 43.54),
vector3(3555.01, 3636.31, 41.34),
vector3(3522.41, 3650.39, 41.34),
vector3(3430.99, 3671.47, 41.34),
vector3(3547.11, 3798.88, 30.35),
vector3(3513.03, 3754.60, 29.97),
}
},
}
Config.DefaultWeapon = "weapon_pistol" -- Default Weapon
Config.Items = {
[1] = {
itemName = "weapon_pistol", -- item code
count = 1, -- item amount
type = 'weapon', -- item type (item or weapon)
ammoslot = 3, -- If it's a weapon, in which slot should the ammo be placed?
ammocount = 20, -- How many rounds of ammo should be given?
slot = 1 -- slot
},
[2] = {
itemName = "armor",
count = 10,
slot = 2,
},
[4] = {
itemName = "bandage",
count = 20,
slot = 4,
},
}
Config.WeaponNames = { -- The location to integrate weapon images with the kill feed.
[tostring(GetHashKey('WEAPON_PISTOL'))] = 'weapon_pistol',
[tostring(GetHashKey('WEAPON_HEAVYPISTOL'))] = 'weapon_heavypistol',
[tostring(GetHashKey('WEAPON_APPISTOL'))] = 'weapon_appistol',
[tostring(GetHashKey('WEAPON_MACHINEPISTOL'))] = 'weapon_machinepistol',
[tostring(GetHashKey('WEAPON_MICROSMG'))] = 'weapon_microsmg2',
[tostring(GetHashKey('WEAPON_ASSAULTSMG'))] = 'weapon_assaultsmg',
[tostring(GetHashKey('WEAPON_ASSAULTRIFLE'))] = 'weapon_assaultrifle',
[tostring(GetHashKey('WEAPON_DP9'))] = 'weapon_pistol',
}
Config.Shops = { -- Shop
[1] = {
itemName = "weapon_pistol", -- item code
images = "weapon_pistol.webp", -- item image
points = 0, -- item price
count = 1, -- item amount
label = 'Pistol', -- item label
tur = "weapon" -- item type (item or weapon)
},
[2] = {
itemName = "weapon_browning",
images = "weapon_browning.webp",
points = 0,
count = 1,
label = 'Browning',
tur = "weapon"
},
[3] = {
itemName = "weapon_heavypistol",
images = "weapon_heavypistol.webp",
points = 0,
count = 1,
label = 'Heavy Pistol',
tur = "weapon"
},
[4] = {
itemName = "weapon_assaultrifle",
images = "weapon_assaultrifle.webp",
points = 0,
count = 1,
label = 'Assault Rifle',
tur = "weapon"
},
[5] = {
itemName = "weapon_microsmg",
images = "weapon_microsmg2.webp",
points = 0,
count = 1,
label = 'Micro SMG',
tur = "weapon"
},
[6] = {
itemName = "armor",
images = "armor.png",
points = 0,
count = 1,
label = 'Armor',
tur = "item"
},
}
local Locales = {
tr = {
["passive"] = "PASIF",
["active"] = "AKTIF",
["unlimited"] = "SINIRSIZ",
["minutes"] = "%d dakika",
["seconds"] = "%d saniye",
["respawnnotif"] = Config.RespawnTime.. " saniye boyunca dokunulmazsın.",
["invincibleend"] = "Dokunulmazlık sona erdi.",
["notstarted"] = "Etkinlik başlamadı.",
["serverfull"] = "Warzone şu anda dolu!",
["alreadyin"] = "Zaten warzone içindesin.",
["outofarea"] = "Alandan çok uzaklaştığın için etkinlikten çıkarıldın.",
["started"] = "Etkinlik başladı",
["nothavepoints"] = "Yeterli puanın yok",
["alreadyhave"] = "Zaten sende bu silah var.",
},
en = {
["passive"] = "PASSIVE",
["active"] = "ACTIVE",
["unlimited"] = "UNLIMITED",
["minutes"] = "%d minutes",
["seconds"] = "%d seconds",
["respawnnotif"] = Config.RespawnTime.." seconds of invincibility.",
["invincibleend"] = "Invincibility ended.",
["notstarted"] = "Event has not started.",
["serverfull"] = "Warzone is currently full!",
["alreadyin"] = "You are already in the warzone.",
["outofarea"] = "You were removed from the event because you left the area.",
["started"] = "Event started",
["nothavepoints"] = "You don't have enough points",
["alreadyhave"] = "You already have this weapon."
}
}
Config.Locales = {}
if Locales[currentlocale] then
for k, v in pairs(Locales[currentlocale]) do
Config.Locales[k] = v
end
end
function Translate(key, ...)
if Config.Locales[key] then
return string.format(Config.Locales[key], ...)
else
return key
end
end
Last updated