Configuration
Config = Config or {}
Config.BRSettings = {
AllowCommand = true, -- Allowing all players to use the "brmenu" command to open the menu from everywhere
Command = "brmenu",
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 = 2, -- Delay of 10sec to create the lobby
MinPlayers = 1, -- Minimum required amount of players to start a game
MaxPlayers = 2, -- 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 = false, -- 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 = 0, -- 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 = 0,
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 = 0,
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 = 0,
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 },
{ pos= vector3(894.16, -494.33, 57.94), heading= 141.74 },
{ pos= vector3(869.92, -495.79, 57.64), heading= 51.29 },
{ pos= vector3(771.25, -233.34, 66.11), heading= 62.94 },
{ pos= vector3(705.05, -303.59, 59.24), heading= 282.43 },
{ pos= vector3(886.52, -172.97, 77.11), heading= 58.55 },
{ pos= vector3(803.14, -103.8, 80.61), heading= 147.7 },
{ pos= vector3(944.9, -237.64, 68.68), heading= 237.52 },
{ pos= vector3(1081.62, -234.13, 57.52), heading= 144.73 },
{ pos= vector3(900.98, -363.31, 51.72), heading= 195.41 },
{ pos= vector3(1139.88, -314.41, 67.13), heading= 149.11 },
{ pos= vector3(1099.42, -345.93, 67.18), heading= 305.25 },
{ pos= vector3(1170.76, -404.55, 76.22), heading= 121.16 },
{ pos= vector3(1126.15, -473.92, 66.49), heading= 31.77 },
{ pos= vector3(1101.05, -411.27, 67.56), heading= 83.55 },
{ pos= vector3(1044.38, -449.06, 66.26), heading= 78.46 },
{ pos= vector3(1027.85, -492.62, 63.92), heading= 13.1 },
{ pos= vector3(970.34, -502.37, 62.14), heading= 73.76 },
{ pos= vector3(944.67, -536.8, 59.71), heading= 254.00 },
{ pos= vector3(912.61, -554.36, 58.37), heading= 27.57 },
{ pos= vector3(941.02, -451.92, 61.25), heading= 300.38 },
{ pos= vector3(1005.29, -407.29, 64.42), heading= 276.88 },
{ pos= vector3(829.44, -539.54, 57.52), heading= 125.89 },
{ pos= vector3(850.68, -603.44, 58.12), heading= 318.48 },
{ pos= vector3(904.71, -633.97, 58.05), heading= 51.77 },
{ pos= vector3(944.95, -677.82, 58.45), heading= 120.81 },
{ pos= vector3(986.95, -734.63, 57.82), heading= 129.07 },
{ pos= vector3(1035.92, -763.87, 57.99), heading= 331.52 },
{ pos= vector3(1093.01, -787.45, 58.26), heading= 178.19 },
{ pos= vector3(1142.73, -792.27, 57.6), heading= 92.46 },
{ pos= vector3(1316.05, -598.48, 73.25), heading= 156.33 },
{ pos= vector3(1366.85, -623.44, 74.71), heading= 180.53 },
{ pos= vector3(1404.74, -563.16, 74.5), heading= 297.86 },
{ pos= vector3(1355.24, -531.45, 73.89), heading= 336.21 },
{ pos= vector3(1309.13, -511.75, 71.46), heading= 338.44 },
{ pos= vector3(1257.34, -437.64, 69.57), heading= 112.12 },
{ pos= vector3(1223.71, -481.9, 66.4), heading= 256.47 },
{ pos= vector3(1248.39, -477.43, 69.83), heading= 78.37 },
{ pos= vector3(1241.23, -510.45, 69.35), heading= 74.9 },
{ pos= vector3(1215.46, -639.32, 64.58), heading= 106.29 },
{ pos= vector3(1121.3, -645.8, 56.81), heading= 284.58 },
{ pos= vector3(1078.89, -686.97, 57.61), heading= 194.49 },
{ pos= vector3(1407.35, -734.04, 68.67), heading= 57.64 },
{ pos= vector3(991.92, -592.8, 59.24), heading= 350.06 },
},
}
}
-- 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!",
}
Last updated