--[[
- this script needs tgiann-core script to work, you can download the script from your keymaster account
Start tgiann-core script after es_extented/qb-core script and before tgiann-* scripts
Adjust the tgiann-core config file according to the framework you are using
]]
tgiCoreExports = exports["tgiann-core"]
config = tgiCoreExports:getConfig()
config.test = false -- If true, all fires will start and the location of the fires will be displayed on the map
config.lang = "en" -- "tr" | "en"
config.spawnDistance = 50 -- visibility distance of fire effects
config.serverControlWait = 10 * 60000 -- 10 Minute (fires start again during each check)
config.maxFireSameTime = 8 -- maximum fire at the same time
config.maxGroup = 4 -- maximum number of players that can be in a team
config.money = 250 -- money per fire extinguished
config.moneyType = "cash" -- Money type
config.fireListMenuKey = "R" -- Open fire list menu key
config.isKm = true -- show distances in km in menu
config.teamFullPay = true -- give full pay to all players in the team, If false, the money is split within the team
config.fireExtinguishing = 10 -- fire extinguishing rate, the fire goes out when each fire value reaches 100
config.fireExtinguishingWithHose = 20 -- fire extinguishing rate with hose, the fire goes out when each fire value reaches 100
config.minHoseDist = 30 -- Gives automatic hose to the character when you get close to the vehicle
config.needPlayerStartFire = 20 --If config.job.active is true the number of players in the job is checked, if false the total number of online players is checked
config.job = {
active = false,
jobs = {"fire", "ambulance"}
}
config.ClosestPlayerRefreshTime = 10000
config.rMenuCss = {
left = "3vh",
bottom = "19vh",
}
config.firePercentMenuCss = {
left = "10vh",
bottom = "19vh",
width = "16.5vh",
}
config.disableKeysWhenStarted = { -- https://docs.fivem.net/docs/game-references/controls/
45, -- INPUT_RELOAD - R
80, -- INPUT_VEH_CIN_CAM - R
}
config.clotheEnable = true
config.clothe = { -- Change only val
male = {
{ name = "tshirt_1" , componentId = 8 , val = 15 },
{ name = "tshirt_2" , componentId = 8 , val = 0 },
{ name = "torso_1" , componentId = 11 , val = 314 },
{ name = "torso_2" , componentId = 11 , val = 0 },
{ name = "decals_1" , componentId = 10 , val = 0 },
{ name = "decals_2" , componentId = 10 , val = 0 },
{ name = "arms" , componentId = 3 , val = 4 },
{ name = "pants_1" , componentId = 4 , val = 120 },
{ name = "pants_2" , componentId = 4 , val = 0 },
{ name = "shoes_1" , componentId = 6 , val = 103 },
{ name = "shoes_2" , componentId = 6 , val = 0 },
{ name = "mask_1" , componentId = 1 , val = 0 },
{ name = "mask_2" , componentId = 1 , val = 0 },
{ name = "helmet_1" , isProp = true, componentId = 0 , val = 137 },
{ name = "helmet_2" , isProp = true, componentId = 0 , val = 0 },
{ name = "chain_1" , componentId = 7 , val = 0 },
{ name = 'chain_2' , componentId = 7 , val = 0 },
{ name = "ears_1" , isProp = true, componentId = 2 , val = -1 },
{ name = 'ears_2' , isProp = true, componentId = 2 , val = 0 },
{ name = "bproof_1" , componentId = 9 , val = 14 },
{ name = 'bproof_2' , componentId = 9 , val = 0 },
},
female = {
{ name = "tshirt_1" , componentId = 8 , val = 14 },
{ name = "tshirt_2" , componentId = 8 , val = 0 },
{ name = "torso_1" , componentId = 11 , val = 325 },
{ name = "torso_2" , componentId = 11 , val = 0 },
{ name = "decals_1" , componentId = 10 , val = 0 },
{ name = "decals_2" , componentId = 10 , val = 0 },
{ name = "arms" , componentId = 3 , al = 9 },
{ name = "pants_1" , componentId = 4 , val = 126 },
{ name = "pants_2" , componentId = 4 , val = 0 },
{ name = "shoes_1" , componentId = 6 , val = 107 },
{ name = "shoes_2" , componentId = 6 , val = 0 },
{ name = "mask_1" , componentId = 1 , val = 0 },
{ name = "mask_2" , componentId = 1 , val = 0 },
{ name = "helmet_1" , isProp = true, componentId = 0 , val = 136 },
{ name = "helmet_2" , isProp = true, componentId = 0 , val = 0 },
{ name = "chain_1" , componentId = 7 , val = 0 },
{ name = 'chain_2' , componentId = 7 , val = 0 },
{ name = "ears_1" , isProp = true, componentId = 2 , val = -1 },
{ name = 'ears_2' , isProp = true, componentId = 2 , val = 0 },
{ name = "bproof_1" , componentId = 9 , val = 14 },
{ name = 'bproof_2' , componentId = 9 , val = 0 },
}
}
config.jobStart = {
ped = {
coords = vector4(1196.59, -1462.48, 34.83, 357.93),
model = `s_m_y_fireman_01`,
maxDistance = 2,
pressDistance = 1,
blip = {
enabled = true,
sprite = 540,
colour = 1,
scale = 0.6,
}
},
car = {
coords = vector4(1201.04, -1474.52, 34.86, 353.94),
spawn = vector4(1201.3, -1458.87, 34.8, 351.27),
model = `firetruk`,
maxDistance = 10,
pressDistance = 10,
getMoney = {
active = true,
money = 1000
}
}
}
config.damageDistance = { -- fire damage
active = true,
amount = 3,
distance = 2
}
config.fireBlips = {
enabled = true,
sprite = 436,
colour = 49,
scale = 0.5,
}
config.typeFireAmount = {
{
type = "small",
amount = 2,
},
{
type = "medium",
amount = 4,
},
{
type = "big",
amount = 6,
},
}
--coords: Coordinates must be at least as many as the "amount" of "big" fire type(config.typeFireAmount) mentioned above
--names: must be uniq
config.location = {
{
name = "fire_1", -- Mission Row Police Department
blipCoord = vector3(424.72, -995.93, 30.58),
coords = {
vector3(424.72, -995.93, 30.58),
vector3(426.73, -999.51, 30.47),
vector3(424.81, -989.75, 30.66),
vector3(449.72, -999.86, 30.4),
vector3(418.33, -1005.57, 29.23),
vector3(418.59, -1008.69, 29.24),
},
},
{
name = "fire_2", -- Little Bighorn Power Plant
blipCoord = vector3(575.3, -1606.57, 28.09),
coords = {
vector3(575.3, -1606.57, 28.09),
vector3(567.44, -1599.94, 28.11),
vector3(568.47, -1614.8, 28.19),
vector3(560.9, -1607.86, 28.17),
vector3(561.33, -1630.3, 30.15),
vector3(566.24, -1622.98, 27.39)
},
},
{
name = "fire_3", -- Southside Factory
blipCoord = vector3(536.43, -1932.1, 24.93),
coords = {
vector3(536.43, -1932.1, 24.93),
vector3(530.07, -1922.39, 24.89),
vector3(537.53, -1943.03, 24.76),
vector3(533.08, -1965.41, 24.82),
vector3(526.25, -1917.06, 24.74),
vector3(543.35, -1953.35, 24.98)
},
},
{
name = "fire_4", -- Pier Power Station
blipCoord = vector3(-234.31, -2664.89, 11.8),
coords = {
vector3(-234.31, -2664.89, 11.8),
vector3(-229.66, -2653.27, 11.68),
vector3(-222.55, -2662.98, 11.77),
vector3(-238.49, -2656.32, 11.7),
vector3(-211.97, -2649.63, 6.0),
vector3(-218.65, -2649.47, 6.0)
},
},
{
name = "fire_5", -- Airport Boxes
blipCoord = vector3(-789.99, -2805.86, 13.95),
coords = {
vector3(-789.99, -2805.86, 13.95),
vector3(-805.51, -2797.91, 13.95),
vector3(-809.14, -2784.23, 13.74),
vector3(-816.51, -2779.69, 13.95),
vector3(-804.58, -2766.92, 13.94),
vector3(-796.68, -2781.67, 13.94),
},
},
{
name = "fire_6", -- Tangerine Flats
blipCoord = vector3(966.51, -206.61, 73.08),
coords = {
vector3(966.51, -206.61, 73.08),
vector3(947.51, -205.81, 73.17),
vector3(950.08, -201.21, 76.23),
vector3(962.11, -214.66, 79.3),
vector3(971.08, -199.75, 76.26),
vector3(952.81, -196.43, 73.21),
},
},
{
name = "fire_7", -- LSDWP
blipCoord = vector3(706.87, 128.21, 80.76),
coords = {
vector3(706.87, 128.21, 80.76),
vector3(713.71, 125.43, 80.86),
vector3(703.87, 109.27, 80.9),
vector3(701.84, 99.18, 80.74),
vector3(703.88, 115.16, 80.87),
vector3(706.67, 104.88, 81.18),
vector3(718.05, 153.27, 80.66),
vector3(733.6, 144.46, 80.75),
},
},
{
name = "fire_8", -- Alta Car Park
blipCoord = vector3(129.95, 271.28, 109.97),
coords = {
vector3(129.95, 271.28, 109.97),
vector3(126.98, 273.32, 109.97),
vector3(123.66, 276.1, 109.97),
vector3(117.68, 276.92, 109.97),
vector3(109.51, 279.67, 109.97),
vector3(110.15, 304.3, 110.8),
vector3(97.11, 298.37, 110.0),
vector3(125.24, 291.23, 109.77),
vector3(133.77, 296.4, 109.96),
},
},
{
name = "fire_9", -- Eclipse Building 1
blipCoord = vector3(-231.66, 289.22, 92.06),
coords = {
vector3(-231.66, 289.22, 92.06),
vector3(-232.19, 296.43, 92.66),
vector3(-257.88, 304.12, 92.09),
vector3(-250.21, 305.5, 92.02),
vector3(-247.08, 297.23, 92.21),
vector3(-243.21, 279.94, 91.92),
vector3(-232.6, 283.65, 91.96),
},
},
{
name = "fire_10", -- Eclipse Building 2
blipCoord = vector3(-179.85, 218.86, 89.7),
coords = {
vector3(-179.85, 218.86, 89.7),
vector3(-184.75, 219.71, 88.56),
vector3(-194.38, 220.15, 88.33),
vector3(-180.2, 202.82, 87.54),
vector3(-176.4, 203.29, 88.03),
vector3(-172.55, 219.33, 89.86),
},
},
{
name = "fire_11", -- Los Santos Customs Hawick
blipCoord = vector3(-346.38, -131.67, 38.71),
coords = {
vector3(-346.38, -131.67, 38.71),
vector3(-345.4, -128.76, 39.01),
vector3(-344.49, -121.66, 38.84),
vector3(-337.78, -123.85, 38.86),
vector3(-324.2, -128.63, 38.73),
vector3(-319.0, -132.14, 38.99),
vector3(-323.97, -142.45, 38.99),
vector3(-337.73, -143.05, 38.78),
vector3(-346.87, -140.18, 38.93),
},
},
{
name = "fire_12", -- Little Seoul
blipCoord = vector3(-676.41, -877.3, 24.26),
coords = {
vector3(-676.41, -877.3, 24.26),
vector3(-687.89, -876.12, 24.16),
vector3(-690.1, -890.29, 24.46),
vector3(-676.03, -887.25, 24.37),
vector3(-673.41, -895.95, 24.43),
vector3(-663.54, -889.29, 24.35),
vector3(-668.89, -888.75, 24.44),
},
},
{
name = "fire_13", -- Invention Car Park
blipCoord = vector3(-878.86, -1140.7, 5.59),
coords = {
vector3(-878.86, -1140.7, 5.59),
vector3(-883.95, -1143.19, 5.66),
vector3(-889.39, -1141.64, 5.86),
vector3(-894.74, -1141.01, 5.8),
vector3(-896.12, -1144.08, 5.96),
vector3(-903.2, -1149.8, 6.0),
vector3(-905.86, -1145.58, 6.09),
},
},
{
name = "fire_14", -- Vagos Beach
blipCoord = vector3(-1099.87, -1646.78, 4.47),
coords = {
vector3(-1099.87, -1646.78, 4.47),
vector3(-1091.52, -1652.47, 4.4),
vector3(-1101.57, -1652.6, 4.27),
vector3(-1091.04, -1657.0, 6.95),
vector3(-1102.91, -1665.85, 6.98),
vector3(-1090.3, -1653.5, 4.4)
},
},
{
name = "fire_15", -- Vagos Beach
blipCoord = vector3(-1996.74, 546.91, 110.12),
coords = {
vector3(-1996.74, 546.91, 110.12),
vector3(-2002.34, 533.52, 109.67),
vector3(-2010.02, 530.3, 109.72),
vector3(-2021.16, 547.86, 110.17),
vector3(-2001.18, 551.77, 112.53),
vector3(-2012.19, 534.39, 112.67),
vector3(-2010.1, 544.35, 110.17),
},
},
{
name = "fire_16", -- Vagos Beach
blipCoord = vector3(1526.75, 795.61, 77.46),
coords = {
vector3(1526.75, 795.61, 77.46),
vector3(1530.16, 793.87, 77.5),
vector3(1535.9, 791.14, 77.46),
vector3(1538.88, 789.26, 77.5),
vector3(1527.55, 804.67, 77.47),
vector3(1538.14, 823.41, 78.24),
},
},
{
name = "fire_17", -- Lost MC
blipCoord = vector3(953.11, -120.81, 74.14),
coords = {
vector3(953.11, -120.81, 74.14),
vector3(943.29, -119.6, 74.24),
vector3(959.0, -120.79, 74.94),
vector3(975.24, -110.11, 74.13),
vector3(983.69, -102.45, 74.79),
vector3(982.6, -118.48, 73.76),
vector3(979.95, -138.19, 74.21),
},
},
{
name = "fire_18", -- Lost MC
blipCoord = vector3(1000.27, -144.98, 74.19),
coords = {
vector3(1000.27, -144.98, 74.19),
vector3(1002.87, -146.79, 74.19),
vector3(1007.06, -147.9, 74.19),
vector3(1010.35, -143.58, 74.19),
vector3(1013.6, -140.38, 74.19),
vector3(1017.15, -136.65, 74.19),
vector3(1020.6, -133.28, 74.19),
},
},
{
name = "fire_19", -- Occupation Construction
blipCoord = vector3(93.91, -424.8, 37.79),
coords = {
vector3(93.91, -424.8, 37.79),
vector3(92.12, -410.5, 37.3),
vector3(63.02, -428.78, 37.4),
vector3(65.72, -416.17, 37.16),
vector3(81.53, -457.52, 37.37),
vector3(64.48, -414.1, 39.92),
},
},
{
name = "fire_20", -- Vespucci Car Park
blipCoord = vector3(-1176.86, -1187.33, 5.62),
coords = {
vector3(-1176.86, -1187.33, 5.62),
vector3(-1177.8, -1176.99, 5.43),
vector3(-1170.21, -1167.61, 5.25),
vector3(-1171.17, -1157.7, 5.51),
vector3(-1160.07, -1184.32, 5.48),
vector3(-1158.86, -1188.23, 5.53),
},
},
{
name = "fire_21", -- Vespucci Car Park
blipCoord = vector3(-1546.67, -283.95, 48.23),
coords = {
vector3(-1546.67, -283.95, 48.23),
vector3(-1536.34, -270.73, 48.26),
vector3(-1538.18, -254.88, 48.3),
vector3(-1549.13, -274.5, 46.57),
vector3(-1550.35, -250.1, 48.23),
vector3(-1557.44, -258.32, 48.44)
},
},
{
name = "fire_22", -- Motel Balcony
blipCoord = vector3(-289.28, -1038.46, 36.25),
coords = {
vector3(-289.28, -1038.46, 36.25),
vector3(-293.85, -1032.62, 36.41),
vector3(-300.84, -1034.34, 36.29),
vector3(-304.26, -1028.76, 36.19),
vector3(-298.26, -1045.3, 36.33),
vector3(-292.06, -1047.44, 36.35),
},
},
{
name = "fire_23", -- Bus Station
blipCoord = vector3(439.83, -605.22, 28.34),
coords = {
vector3(439.83, -605.22, 28.34),
vector3(440.45, -596.95, 28.32),
vector3(450.93, -595.44, 28.16),
vector3(433.02, -574.97, 28.15),
vector3(444.79, -564.68, 28.68),
vector3(457.02, -572.78, 28.5),
},
},
{
name = "fire_24", -- Bus Station
blipCoord = vector3(475.49, -577.05, 28.5),
coords = {
vector3(475.49, -577.05, 28.5),
vector3(477.72, -579.29, 28.5),
vector3(479.77, -581.9, 28.5),
vector3(479.88, -586.63, 28.5),
vector3(478.8, -591.44, 28.67),
vector3(478.27, -595.93, 28.5),
},
},
{
name = "fire_25", -- Textile City
blipCoord = vector3(462.03, -756.23, 27.19),
coords = {
vector3(462.03, -756.23, 27.19),
vector3(462.95, -747.45, 27.36),
vector3(451.6, -735.5, 27.19),
vector3(451.26, -750.2, 27.29),
vector3(451.04, -778.57, 27.26),
vector3(462.11, -772.15, 27.36),
},
},
{
name = "fire_26", -- Diner Car Park
blipCoord = vector3(820.82, -805.56, 26.31),
coords = {
vector3(820.82, -805.56, 26.31),
vector3(829.17, -814.91, 26.01),
vector3(837.93, -804.65, 25.96),
vector3(825.48, -795.77, 25.86),
vector3(825.18, -778.55, 25.77),
vector3(826.24, -772.39, 25.88),
vector3(815.15, -775.04, 26.35),
vector3(840.93, -800.41, 25.94),
},
},
{
name = "fire_27", -- Capital Car Park
blipCoord = vector3(863.67, -1559.8, 30.03),
coords = {
vector3(863.67, -1559.8, 30.03),
vector3(858.82, -1554.57, 30.02),
vector3(855.68, -1544.58, 29.85),
vector3(870.86, -1539.01, 30.27),
vector3(878.31, -1555.56, 30.4),
vector3(863.71, -1549.1, 30.01),
},
},
{
name = "fire_28", -- Weapon Factory Car Park
blipCoord = vector3(-583.69, -1584.79, 26.75),
coords = {
vector3(-583.69, -1584.79, 26.75),
vector3(-582.16, -1592.86, 26.64),
vector3(-589.45, -1592.24, 26.62),
vector3(-596.72, -1590.62, 26.75),
vector3(-603.41, -1589.92, 26.75),
vector3(-606.5, -1594.11, 26.89),
},
},
{
name = "fire_29", -- Hanger Way Car Park
blipCoord = vector3(855.72, -2363.87, 30.04),
coords = {
vector3(855.72, -2363.87, 30.04),
vector3(865.12, -2364.05, 31.47),
vector3(874.41, -2359.22, 30.27),
vector3(860.65, -2333.98, 30.25),
vector3(839.14, -2330.94, 30.33),
vector3(839.4, -2363.71, 30.37),
},
},
{
name = "fire_30", -- Marathon Car Park
blipCoord = vector3(-983.57, -269.35, 38.24),
coords = {
vector3(-983.57, -269.35, 38.24),
vector3(-972.47, -265.01, 37.98),
vector3(-979.81, -275.48, 38.26),
vector3(-982.89, -287.62, 37.84),
vector3(-989.69, -290.99, 37.93),
vector3(-993.48, -283.91, 38.05)
},
},
{
name = "fire_31",
blipCoord = vector3(265.89, -345.14, 45.04),
coords = {
vector3(265.89, -345.14, 45.04),
vector3(262.66, -343.9, 45.04),
vector3(259.67, -342.89, 45.03),
vector3(260.45, -340.03, 45.02),
vector3(259.38, -336.54, 45.02),
vector3(255.34, -335.11, 45.02)
},
},
{
name = "fire_32",
blipCoord = vector3(308.15, -340.59, 46.75),
coords = {
vector3(308.15, -340.59, 46.75),
vector3(306.92, -345.11, 46.17),
vector3(302.9, -347.27, 45.9),
vector3(302.36, -354.17, 45.45),
vector3(298.41, -356.5, 45.17),
vector3(294.3, -357.69, 45.38)
},
},
{
name = "fire_33",
blipCoord = vector3(306.0, -559.85, 43.32),
coords = {
vector3(306.0, -559.85, 43.32),
vector3(305.29, -562.91, 43.32),
vector3(303.19, -565.85, 43.32),
vector3(300.79, -567.26, 43.32),
vector3(298.17, -568.2, 43.35),
vector3(295.73, -565.8, 43.33)
},
},
{
name = "fire_34",
blipCoord = vector3(274.02, -611.95, 43.0),
coords = {
vector3(274.02, -611.95, 43.0),
vector3(276.33, -612.83, 43.13),
vector3(279.28, -614.02, 43.26),
vector3(283.38, -615.11, 43.38),
vector3(286.34, -615.39, 43.44),
vector3(289.56, -616.53, 43.45)
},
},
{
name = "fire_35",
blipCoord = vector3(402.49, -1161.27, 29.29),
coords = {
vector3(402.49, -1161.27, 29.29),
vector3(403.52, -1164.3, 29.29),
vector3(403.85, -1167.64, 29.29),
vector3(401.5, -1169.96, 29.29),
vector3(398.05, -1170.04, 29.29),
vector3(393.83, -1169.42, 29.29)
},
},
{
name = "fire_36",
blipCoord = vector3(140.59, -1058.24, 29.19),
coords = {
vector3(140.59, -1058.24, 29.19),
vector3(136.55, -1056.28, 29.19),
vector3(136.74, -1053.15, 29.18),
vector3(138.11, -1049.33, 29.15),
vector3(134.75, -1047.08, 29.15),
vector3(132.6, -1050.66, 29.15)
},
},
{
name = "fire_37",
blipCoord = vector3(52.94, -1067.06, 29.37),
coords = {
vector3(52.94, -1067.06, 29.37),
vector3(50.8, -1069.46, 29.47),
vector3(49.18, -1072.17, 29.5),
vector3(47.49, -1075.51, 29.49),
vector3(44.84, -1077.88, 29.71),
vector3(42.4, -1080.63, 29.65)
},
},
{
name = "fire_38",
blipCoord = vector3(-26.48, -1164.83, 26.33),
coords = {
vector3(-26.48, -1164.83, 26.33),
vector3(-29.61, -1164.36, 26.06),
vector3(-32.9, -1164.2, 26.07),
vector3(-36.27, -1165.02, 26.06),
vector3(-39.43, -1165.53, 26.06),
vector3(-41.61, -1163.29, 26.09)
},
},
{
name = "fire_39",
blipCoord = vector3(-5.75, -1117.95, 28.4),
coords = {
vector3(-5.75, -1117.95, 28.4),
vector3(-3.04, -1117.34, 28.57),
vector3(-0.32, -1117.67, 28.61),
vector3(2.75, -1117.87, 28.62),
vector3(5.71, -1117.87, 28.62),
vector3(8.5, -1118.1, 28.65)
},
},
{
name = "fire_40",
blipCoord = vector3(-33.01, -1029.17, 28.76),
coords = {
vector3(-33.01, -1029.17, 28.76),
vector3(-29.87, -1030.16, 28.82),
vector3(-26.51, -1030.85, 28.86),
vector3(-22.98, -1030.39, 29.2),
vector3(-20.72, -1032.69, 28.89),
vector3(-17.67, -1034.81, 28.93)
},
},
{
name = "fire_41",
blipCoord = vector3(29.38, -822.45, 31.82),
coords = {
vector3(29.38, -822.45, 31.82),
vector3(27.09, -821.91, 31.82),
vector3(25.98, -819.72, 31.82),
vector3(27.21, -816.79, 31.82),
vector3(29.86, -812.53, 31.82),
vector3(32.52, -808.94, 31.82)
},
},
{
name = "fire_42",
blipCoord = vector3(468.77, -850.99, 26.59),
coords = {
vector3(468.77, -850.99, 26.59),
vector3(470.89, -854.53, 26.43),
vector3(468.12, -856.81, 26.67),
vector3(464.55, -857.9, 26.92),
vector3(461.86, -855.93, 27.12),
vector3(461.66, -852.69, 27.14)
},
},
{
name = "fire_43",
blipCoord = vector3(434.76, -1063.49, 29.21),
coords = {
vector3(434.76, -1063.49, 29.21),
vector3(436.83, -1062.51, 29.21),
vector3(440.21, -1062.06, 29.21),
vector3(451.32, -1060.06, 29.21),
vector3(454.05, -1062.21, 29.21),
vector3(457.51, -1062.01, 29.3)
},
},
{
name = "fire_44",