Configuration
Config = Config or {}
Config.MenuKey = 244 -- 244 = M / (https://docs.fivem.net/docs/game-references/controls/)
Config.DeathTime = 3 -- 3 seconds to respawn
Config.Zone = {
Coordinates = vector3(2431.94, 4993.28, 46.24), -- Zone coordinates
Radius = 100, -- Zone Radius, only in this radius players can fight
Blip = { Colour= 0, Size= 0.7, Id= 630, x= 2446.65, y= 4973.63, z= 46.81 },
ZoneRadius = { Colour= 1, Alpha= 100, x= 2431.94, y= 4993.28, z= 46.24, Radius= 100.0 },
}
Config.Distance = {
EnterWarzoneDist = 2, -- Enter War Zone X distance
DrawmarkerDist = 20, -- Drawmarker distance
}
Config.Commands = {
ActivateWarzone = "startwarzone", -- Only admins - Activate War Zone via command in game
DeactivateWarzone = "endwarzone" -- Only admins - Deactivate War Zone via command in game
}
Config.StartWarzone = {
Location = vector3(2490.62, 4960.44, 44.77), -- Enter location for War Zone
ExitLocation = vector3(2495.73, 4968.22, 44.6), -- Exit War Zone location
ExitHeading = 314.85,
}
-- Players will spawn randomly
Config.SpawnLocations = {
[1] = vector3(2490.62, 4960.44, 44.77),
[2] = vector3(2464.91, 4993.63, 46.06),
[3] = vector3(2450.68, 4994.55, 45.94),
[4] = vector3(2433.15, 4994.57, 46.26),
-- Add as many as you want
}
-- Start Items for the first time joining or a empty inventory
Config.WarzoneItems = {
[1] = { ItemName= "weapon_pistol", Amount= 1 },
[2] = { ItemName= "pistol_ammo", Amount= 30 },
[3] = { ItemName= "heavyarmor", Amount= 10 },
[4] = { ItemName= "bandage", Amount= 20 },
}
-- Warzone Shop / Price = Kill Points
Config.WarzoneMenuItems = {
[1] = {Item= "weapon_assaultrifle", Label= "Ak47", Amount= 1, Price= 10},
[2] = {Item= "weapon_machinepistol", Label= "Tec-9", Amount= 1, Price = 5},
[3] = {Item= "weapon_vintagepistol", Label= "Vintage Pistol", Amount= 1, Price= 4},
[4] = {Item= "weapon_knuckle", Label= "Knockout", Amount= 1, Price= 3},
[5] = {Item= "weapon_machete", Label= "Machete", Amount= 1, Price= 2},
[6] = {Item= "bandage", Label= "Bandage", Amount= 10, Price= 1},
[7] = {Item= "pistol_ammo", Label= "Pistol Ammo", Amount= 10, Price= 1},
}
-- Language
Config.Lang = {
["key_enter"] = "Press ~INPUT_CONTEXT~ to enter War Zone",
["command_start"] = "Start War Zone",
["command_end"] = "Deactivate War Zone",
["menu_header"] = "War Zone Menu",
["menu_shop"] = "War Zone Shop",
["menu_shop2"] = "Buy new items & weapons",
["menu_ranglist"] = "Leaderboard",
["menu_ranglist2"] = "Show the bests",
["menu_exit"] = "Leave War Zone",
["menu_back"] = "< Back",
["close_menu"] = "Close Menu",
["menu_kills"] = "Kills: ",
["item_price"] = "Price: ",
["item_points"] = " Point(s)",
["item_bought"] = "Item bought: ",
["no_points"] = "Not enough points!",
["blip_name"] = "War Zone Deathmatch",
["activate_warzone"] = "War Zone Deathmatch: Now active!",
["deactivate_warzone"] = "War Zone Deathmatch: Deactivated",
["firsttime_warzone"] = "Welcome to War Zone Deathmatch. Setting items",
["enter_warzone"] = "You have entered the War Zone",
["exit_warzone"] = "You have left the War Zone. inventory has been saved",
["warzone_inv"] = "War Zone inventory successfully loaded",
["warzone_inv_save"] = "War Zone inventory saved",
["restored_inv"] = "Inventory successfully restored",
["quit"] = "Player was in War Zone, kick Player from Warzone",
}
Last updated