Config File Descriptions
Config = {}
local currentlocale = "en" -- Locales type (tr or en)
Config.Redzones = {
["MaddeX1"] = {
label = "Red Zone", -- translate to your language
Coords = { ['x'] = 2434.79, ['y'] = 4968.52, ['z'] = 42.35 },
Radius = 120.0,
BlipColour = 1,
},
["MaddeX2"] = {
label = "Yellow Zone", -- translate to your language
Coords = { ['x'] = 2434.79, ['y'] = 4968.52, ['z'] = 42.35 },
Radius = 400.0,
BlipColour = 5,
},
["MaddeX3"] = {
label = "Blue Zone", -- translate to your language
Coords = { ['x'] = 2434.79, ['y'] = 4968.52, ['z'] = 42.35 },
Radius = 700.0,
BlipColour = 3,
},
}
Config.Perm = "god" -- /Config.AdminCommand permission
Config.RefreshTime = 3000 -- Data Refresh time
Config.JoinCoords = vector3(2444.72, 4261.37, 36.93) -- Join spawn coords
Config.ExitCoords = vector3(289.87, -196.37, 61.57) -- Exit spawn coords
Config.ClearInventory = true -- clear inventory?
Config.WipeData = true -- Should kill counts be reset when the event ends?
Config.DelayBetweenZones = 1 -- Time remaining for area shrinkage (in minutes)
Config.DownSizeAlert = 0.5 -- The "X" value in the warning message indicating that the area will shrink in X minutes (in minutes).
Config.RadiusDownSize = 50 -- Default: 50 | Adjust the area shrinkage speed through trial and error.
Config.DamageValue = 20 -- Damage Value
Config.OpenHouse = 0.3 -- Time remaining for the house to open (in minutes).
Config.RewardWait = 0.5 -- Time remaining for the reward to be generated (in minutes).
Config.DeathWait = 30000 -- Time remaining to be kicked from the event after death (in seconds).
Config.RewardSpawnWait = 0.3 -- Time remaining for the reward preparation (in minutes).
Config.RewardCoords = vector3(2447.77, 4982.97, 46.85) -- The coordinates of the reward marker.
Config.ScreenText = "Material X" -- The text that will appear in the bottom right while inside the area.
Config.RewardOwnerDraw = true -- Should a crown appear above the head of the person who receives the reward?
Config.Key = 38 -- The button to receive the reward is [E].
Config.DamageInterval = 2500 -- How many seconds it takes for damage to be dealt when outside the area (in seconds).
Config.RewardOwnerDistance = 50.0 -- How many meters away the reward can be seen by others after a person receives it.
Config.AdminCommand = "materialx" -- Admin Command
Config.JoinCommand = "joinx" -- Join Command
Config.LeaveCommand = "leavex" -- Exit Command
Config.Items = { -- Items to be given upon respawn.
[1] = {
itemName = "weapon_pistol", -- The item code
amount = 1, -- The item quantity
type = "weapon" -- The item type (weapon or item)
},
[2] = {
itemName = "armor",
amount = 20,
type = "item"
},
[3] = {
itemName = "ammo-9",
amount = 30,
type = "item"
},
[4] = {
itemName = "bandage",
amount = 25,
type = "item"
},
[5] = {
itemName = "radio",
amount = 1,
type = "item"
},
[6] = {
itemName = "uwuckek",
amount = 5,
type = "item"
},
[7] = {
itemName = "uwucmilkshake",
amount = 5,
type = "item"
},
}
local Locales = {
tr = {
["eventlocked"] = "Etkinlik kilitli.",
["notstarted"] = "Etkinlik başlamadı.",
["damaged"] = "Yanlış alanda olduğunuz için hasar yiyorsunuz.",
["downalert"] = Config.DownSizeAlert.." dakika sonra alan daralmaya başlayacaktır ve yeni alana girişler açılacaktır.",
["downedalert"] = "Alan daralmaya başlamıştır ve yeni alana girişler açılmıştır.",
["basecommanddesc"] = "Madde X başlatır/durdurur",
["eventopened"] = "Etkinlik açıldı",
["locked"] = "Etkinlik girişleri kapandı.",
["unlocked"] = "Etkinlik girişleri açıldı.",
["started"] = "Etkinlik başladı",
["startalert"] = "Etkinlik başlamıştır. Mavi alan dışındakiler ve başka bir alanda olanlar hasar yemeye başlayacaktır. Bol Şanslar",
["adminmod1"] = "Admin modu kapatıldı.",
["adminmod2"] = "Admin modu açıldı.",
["closed"] = "Etkinlik kapatıldı.",
["houseopen"] = Config.OpenHouse.." dakika sonra eve girişler açılacakltır. Eve girişler şu anda KAPALIDIR.",
["houseopened"] = "Eve girişler açılmıştır. Ödül "..Config.RewardWait.. " dakika sonra evin içinde belirecektir.",
["rewardspawned"] = "Ödül evin içinde çıkmıştır.",
["rewardtaked"] = "Ödül başarılı bir şekilde alındı.",
["rewardalreadytaked"] = "Ödül çoktan alındı.",
["rewardmsg"] = "[E] - Maddeyi Kontrol Et",
["checkreward"] = "[E] - Ödülü Kontrol Et",
["rewardtakedd"] = "Ödül Alındı",
["takereward"] = "[E] - Ödülü Al",
["annotaked"] = "Ödül Alınmıştır!",
["reamingl"] = "%d dakika %d saniye",
["reamingb"] = " sonra ödülü alabilirsiniz.",
["reamingerror"] = "Kalan süre hesaplanamıyor.",
["rewardowner"] = "👑",
["uidown"] = "ALAN DARALIYOR",
["uinomore"] = "DAHA ALAN KALMADI",
["notspawned"] = "Oluşturulmadı",
["spawned"] = "Oluşturuldu.",
["startno"] = "BASLAMADI",
["minutes"] = "%d dakika",
["seconds"] = "%d saniye",
["rewardui"] = "Ödülün çıkmasına: ",
["lastui"] = "Etkinlik bitmek ",
["lastui2"] = "üzere",
["betweenzone"] = Config.DelayBetweenZones.." dakika sonra alan daralıcaktır.",
["finished"] = "Etkinlik sona erdi.",
["uihouseopen"] = "Evin açılmasına: ",
},
en = {
["eventlocked"] = "Event is locked.",
["notstarted"] = "Event has not started.",
["damaged"] = "You are taking damage because you are in the wrong area.",
["downalert"] = Config.DownSizeAlert.." minutes until the area will start shrinking and new entry points will open.",
["downedalert"] = "The area has started shrinking and new entry points have opened.",
["basecommanddesc"] = "Item X starts/ends",
["eventopened"] = "Event opened",
["locked"] = "Event entries are closed.",
["unlocked"] = "Event entries are open.",
["started"] = "Event started",
["startalert"] = "Event has started. Anyone outside the blue zone or in another area will start taking damage. Good luck!",
["adminmod1"] = "Admin mode has been disabled.",
["adminmod2"] = "Admin mode has been enabled.",
["closed"] = "Event closed.",
["houseopen"] = Config.OpenHouse.." minutes until the house entry will open. House entry is currently CLOSED.",
["houseopened"] = "House entry has been opened. The reward will appear inside the house after "..Config.RewardWait.." minutes.",
["rewardspawned"] = "The reward has spawned inside the house.",
["rewardtaked"] = "Reward successfully taken.",
["rewardalreadytaked"] = "The reward has already been taken.",
["rewardmsg"] = "[E] - Check the Item",
["checkreward"] = "[E] - Check Reward",
["rewardtakedd"] = "Reward Taken",
["takereward"] = "[E] - Take Reward",
["annotaked"] = "Reward has been taken!",
["reamingl"] = "%d minutes %d seconds",
["reamingb"] = " before you can take the reward.",
["reamingerror"] = "Remaining time cannot be calculated.",
["rewardowner"] = "👑",
["uidown"] = "AREA IS SHRINKING",
["uinomore"] = "NO MORE AREA",
["notspawned"] = "Not spawned",
["spawned"] = "Spawned.",
["startno"] = "NOT STARTED",
["minutes"] = "%d minutes",
["seconds"] = "%d seconds",
["rewardui"] = "Time left for reward to spawn: ",
["lastui"] = "Event is about to end ",
["lastui2"] = "soon",
["betweenzone"] = Config.DelayBetweenZones.." minutes until the area starts shrinking.",
["finished"] = "Event has ended.",
["uihouseopen"] = "The house will open in: ",
}
}
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
Config.WeaponNames = { -- The place where the weapon file for the kill feed is specified.
[tostring(GetHashKey('WEAPON_PISTOL'))] = 'weapon_pistol', -- [tostring(GetHashKey(WeaponCode))] = weapon_name (a .webp image file name.)
[tostring(GetHashKey('WEAPON_BROWNING'))] = 'weapon_heavypistol',
[tostring(GetHashKey('WEAPON_DP9'))] = 'weapon_pistol',
[tostring(GetHashKey('WEAPON_GLOCK19GEN4'))] = 'weapon_pistol',
}
Last updated