Installation
Dependencies
QBCore Framework
How to install
Drag the script in your folder and run the SQL br_stats
Make sure you configure everything in you likeness.
Add new Zone
You can add as many Zones as you want and design and configure each Zone uniquely.
-- Example to copy and paste / Adjust every parameter to your likeness
[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
},
Add new Chest
Make sure you add enough chests for each Zone. Place chests wherever you want.
-- Zone 1
[1] = {
{ pos= vector3(-52.47, -1415.6, 29.32), heading= 230.42 },
{ pos= vector3(-133.27, -1417.43, 31.3), heading= 203.39 },
{ pos= vector3(-112.68, -1479.19, 33.82), heading= 51.72 },
},
Item Hashes
Make sure you are using the right FiveM Build to use the hashes. Otherwise objects cannot spawn!
Make sure the item names are the same in Config.ItemHashes
, otherwise the items will not spawn.
["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",
For example: If you use ammo-45 as ammo, you must also enter it in Config.ItemHashes
["ammo-45"] = "v_ret_gc_ammo5",
Last updated