Configuration
Config = Config or {}
Config.BRSettings = {
Inventory = "qb-inventory", -- ox_inventory, qb-inventory
isPublic = true, -- true = Public / false = can only be activated by admins
activateCommand = "startbr", -- If isPublic is false, can only be activated by admins
deactivateCommand = "stopbr",
AllowCommand = true, -- Allowing all players to use the "brmenu" command to open the menu from everywhere
Command = "brmenu", -- If Battle Royale is public
LobbyMarker = { Show= true, r= 0, g= 150, b= 200, x= 10.0, y= 10.0, z= 0.4 },
ChestInfoMarker = { r= 255, g= 200, b= 0, x= 2.0, y= 2.0, z= 1000.0 },
ChestMarker = { r= 255, g= 200, b= 0, x= 0.35, y= 0.35, z= 0.35 },
ZoneMarker = { r= 0, g= 50, b= 250 },
SpawnedItems = { markerId= 1, x= 0.4, y= 0.4, z= 0.7 },
ItemLevelColors = {
[1] = {200, 200, 200}, -- Level 1 Grey
[2] = {30, 255, 90}, -- Level 2 Green
[3] = {70, 140, 255}, -- Level 3 Blue
[4] = {180, 70, 255}, -- Level 4 Purple
[5] = {255, 210, 30} -- Level 5 Gold
},
LobbyMarkerDist = 20.0,
LobbyInteractDist = 5.0,
ChestSoundDist = 15.0,
OpenChestDist = 1.0,
PickupDist = 0.5,
}
Config.BRLobby = {
LobbyPos = vector3(200.14, -995.21, 30.09), -- Lobby menu position
ResetPos = vector3(195.04, -934.36, 31.00), -- Reset position after leaving Battle Royal
MinStart = 10, -- In Seconds - Countdown starts after reaching minimum players amount (MinPlayers)
Delay = 5, -- Delay of seconds to create the lobby
MinPlayers = 1, -- Minimum required amount of players to start a game
MaxPlayers = 3, -- Maximum required amount of players to start a game
AllowStartItems = true, -- If true starter items will be added in the beginning of the Battle Royal round
StartItems = { -- Starter items
Weapon = "weapon_pistol",
Ammo = "pistol_ammo",
AmmoAmount = 3,
}
}
Config.BRZoneSettings = {
PlaneHash = "miljet", -- Plane hash
ChestMarkerDuration = 15000, -- Duration of the chest spots info
ShowChestInfoMarker = true, -- Display a marker at the beginning of the game to give players information about where the chests are located
SecuredParachute = true, -- Allows the parachute to open multiple times while the player is in the air
LegacyFuel = true, -- true if you use LegacyFuel, false if not
ZonePosition = { -- Select a random zone position before starting
-- Add as many Zones as you want
[1] = {
ZoneName= "City",
ZonePos= vector3(-42.61, -1422.24, 29.32),
FlightStart= vector3(873.16, -2376.45, 600.00),
FlightEnd= vector3(-2426.61, 734.02, 550.00),
FlightDuration = 15000, -- In Seconds, after the time runs out each player is automatically thrown out of the plane
StartZoneRadius = 300, -- Zone Radius starting from the beginning
EndZoneRadius = 5, -- The radius of the end zone
ZoneDamage = 2, -- Zone damage
ZoneTime = 5, -- Zone time in minute, the minute will be splitted with ZoneSplit, Example: 10min / 5 (ZoneSplit) = 2min per Zone
ZoneSplit = 3, -- Zone shrinks
ZoneStartTime = 60, -- In Seconds - Starting Zone and the next Zones will start after 60sec
},
[2] = {
ZoneName= "Beach",
ZonePos= vector3(-1184.25, -1244.37, 6.99),
FlightStart= vector3(-2322.87, -1653.82, 600.00),
FlightEnd= vector3(1443.6, -1603.47, 500.00),
FlightDuration = 20000,
StartZoneRadius = 500,
EndZoneRadius = 10,
ZoneDamage = 2,
ZoneTime = 4,
ZoneSplit = 3,
ZoneStartTime = 60,
},
[3] = {
ZoneName= "Desert",
ZonePos= vector3(1640.75, 3574.94, 35.36),
FlightStart= vector3(778.85, 3585.09, 550.00),
FlightEnd= vector3(3811.97, 1959.49, 450.00),
FlightDuration = 15000,
StartZoneRadius = 350,
EndZoneRadius = 10,
ZoneDamage = 2,
ZoneTime = 5,
ZoneSplit = 3,
ZoneStartTime = 60,
},
[4] = {
ZoneName= "Area",
ZonePos= vector3(1185.57, -568.79, 64.3),
FlightStart= vector3(204.89, -246.69, 600.00),
FlightEnd= vector3(3158.34, -1664.13, 550.00),
FlightDuration = 15000,
StartZoneRadius = 300,
EndZoneRadius = 5,
ZoneDamage = 2,
ZoneTime = 10,
ZoneSplit = 5,
ZoneStartTime = 60,
},
}
}
Config.BRChests = {
OpenChestDuration = 1750, -- Duration of opening a chest
ChestSoundName = "Beep_Red",
ChestSoundSetName = "DLC_HEIST_HACKING_SNAKE_SOUNDS",
ChestAnim = "PROP_HUMAN_BUM_BIN",
-- Make sure you have the right FiveM Build to use the hashes (https://forge.plebmasters.de/objects)
-- If the objects don't spawn it's because of your FiveM build
ChestHash = "h4_prop_h4_chest_01a",
OpenedChestHash = "h4_prop_h4_chest_01a_land",
AllowSniper = true, -- False if you do not want to spawn snipers out of the chests
AllowRifles = true,
AllowMG = true,
AllowSMG = true,
AllowShotgun = true,
AllowPistol = true,
MaxInventoryItems = 5, -- How many items a player can have in his inventory - Excluding ammo
ItemsCategory = {
["weapons"] = { -- Make sure to put the right items into the right category
["sniper"] = {
{ Level=5, ItemName= "weapon_heavysniper", AmmoType= "snp_ammo", AmmoAmount= 3, WeaponLabel= "Heavy Sniper", AmmoLabel= "Sniper Ammo" },
{ Level=4, ItemName= "weapon_sniperrifle", AmmoType= "snp_ammo", AmmoAmount= 3, WeaponLabel= "Sniper Rifle", AmmoLabel= "Sniper Ammo" },
},
["rifle"] = {
{ Level=3, ItemName= "weapon_assaultrifle", AmmoType= "rifle_ammo", AmmoAmount= 3, WeaponLabel= "AK 47", AmmoLabel= "Rifle Ammo" },
{ Level=4, ItemName= "weapon_specialcarbine", AmmoType= "rifle_ammo", AmmoAmount= 3, WeaponLabel= "Special Carbine", AmmoLabel= "Rifle Ammo" },
},
["mg"] = {
{ Level=3, ItemName= "weapon_mg", AmmoType= "mg_ammo", AmmoAmount= 3, WeaponLabel= "MG", AmmoLabel= "MG Ammo" },
{ Level=4, ItemName= "weapon_combatmg", AmmoType= "mg_ammo", AmmoAmount= 3, WeaponLabel= "Combat MG", AmmoLabel= "MG Ammo" },
},
["smg"] = {
{ Level=2, ItemName= "weapon_smg", AmmoType= "smg_ammo", AmmoAmount= 3, WeaponLabel= "SMG", AmmoLabel= "SMG Ammo" },
{ Level=3, ItemName= "weapon_smg_mk2", AmmoType= "smg_ammo", AmmoAmount= 3, WeaponLabel= "SMG MK2", AmmoLabel= "SMG Ammo" },
},
["shotgun"] = {
{ Level=3, ItemName= "weapon_pumpshotgun", AmmoType= "shotgun_ammo", AmmoAmount= 3, WeaponLabel= "Pump Shotgun", AmmoLabel= "Shotgun Ammo" },
{ Level=2, ItemName= "weapon_sawnoffshotgun", AmmoType= "shotgun_ammo", AmmoAmount= 3, WeaponLabel= "Sawn Shotgun", AmmoLabel= "Shotgun Ammo" },
},
["pistol"] = {
{ Level=1, ItemName= "weapon_pistol", AmmoType= "pistol_ammo", AmmoAmount= 3, WeaponLabel= "Pistol", AmmoLabel= "Pistol Ammo" },
{ Level=2, ItemName= "weapon_pistol_mk2", AmmoType= "pistol_ammo", AmmoAmount= 3, WeaponLabel= "Pistol MK2", AmmoLabel= "Pistol Ammo" },
}
},
["health_items"] = { -- Counts as extras or health items, can be used for both
{ Level= 1, ItemName= "bandage", Label= "Bandage", Amount= 5 },
{ Level= 2, ItemName= "armor", Label= "Armor", Amount= 3 },
{ Level= 3, ItemName= "heavyarmor", Label= "Heavyarmor", Amount= 1 },
},
},
ChestLocations = {
-- Zone 1
[1] = {
{ pos= vector3(-52.47, -1415.6, 29.32), heading= 230.42 },
},
-- Zone 2
[2] = {
{ pos= vector3(-1175.13, -1261.91, 7.01), heading= 20.72 },
},
-- Zone 3
[3] = {
{ pos= vector3(1630.38, 3577.07, 35.18), heading= 80.35 },
},
-- Zone 4
[4] = {
{ pos= vector3(1235.43, -713.82, 60.65), heading= 4.88 },
},
}
}
-- qb-ambulancejob = TriggerEvent("hospital:client:Revive")
-- esx_ambulancejob = TriggerEvent("esx_ambulancejob:revive")
-- If you are using a custom ambulance script enter the revive export/event into the function
Config.Ambulance = function()
-- qb-ambulancejob
TriggerEvent("hospital:client:Revive")
end
-- Weapons: https://docs.fivem.net/docs/game-references/weapon-models/
-- Objects: https://forge.plebmasters.de/objects
-- Make sure you have the right FiveM Build to use the hashes
-- ["itemname"] = "hashname",
Config.ItemHashes = {
-- Sniper
["weapon_heavysniper"] = "w_sr_heavysniper",
["weapon_sniperrifle"] = "w_sr_sniperrifle",
-- Rifles
["weapon_assaultrifle"] = "w_ar_assaultrifle",
["weapon_specialcarbine"] = "w_ar_carbinerifle",
-- MG
["weapon_mg"] = "w_mg_mg",
["weapon_combatmg"] = "w_mg_combatmg",
-- SMG
["weapon_smg"] = "w_sb_smg",
["weapon_smg_mk2"] = "w_sb_smgmk2",
-- Shotgun
["weapon_pumpshotgun"] = "w_sg_pumpshotgun",
["weapon_sawnoffshotgun"] = "w_sg_sawnoff",
-- Pistols
["weapon_pistol"] = "w_pi_pistol",
["weapon_pistol_mk2"] = "w_pi_pistolmk2",
["weapon_combatpistol"] = "w_pi_combatpistol",
-- Ammo
["snp_ammo"] = "v_ret_gc_ammo2",
["rifle_ammo"] = "v_ret_gc_ammo4",
["mg_ammo"] = "v_ret_gc_ammo1",
["smg_ammo"] = "v_ret_gc_ammo5",
["shotgun_ammo"] = "v_ret_gc_ammo3",
["pistol_ammo"] = "v_ret_gc_ammo5",
-- Extras
["medkit"] = "v_ret_ta_firstaid",
["bandage"] = "prop_ld_health_pack",
["armor"] = "prop_bodyarmour_03",
["heavyarmor"] = "prop_bodyarmour_04",
}
Config.Lang = {
["openmenu"] = " BR Menu",
["openchest"] = " Open Chest",
["pickup_item"] = " Take",
["jump"] = " Jump",
["looting_chest"] = "Looting Chest...",
["zone"] = "Zone: ",
["zonestart"] = "Zone Start in: ",
["nextzone"] = "Next Zone in: ",
["endzone"] = "End Zone",
["weapon_1"] = "❌ You already have this weapon!",
["max_items"] = "❌ Max. 5 Items!",
["activebr"] = "Battle Royale is active now!",
["alreadyactive"] = "Battle Royale is already active!",
["notactive"] = "Battle Royale is not active!",
["stopbr"] = "Battle Royale deactivated!",
}
Last updated