Configuration
Here you can find a breakdown of the config of MedAnnounce
Config file
Debug - To display known error sources
cfg.debug = true
Framework - To specify the framework used ('esx' or 'qbcore')
cfg.framework = "qbcore"
Job - To specify the job in which vehicle fires are triggered
cfg.job = "ambulance"
Dispatch Time - The time in which random operations are generated (in minutes)
cfg.dispatchtime = 30
Burn Time - The time the vehicle burns (in seconds)
cfg.burntime = 900
Auto Despawn - Should the vehicle be extinguished after fighting the fire?
cfg.AutoDespawn = true
Cars - Here you can specify vehicles that are randomly selected
Please do not use two-wheelers
cfg.cars = {
"sultan",
"burrito",
"felon2",
"blista2",
"faction2",
"stalion",
"rancherxl",
"granger",
"landstalker",
}
Positions - Item for the acoustic notification ingame
IMPORTANT - If 'name = nil', a random vehicle is selected. Otherwise
a special vehicle can be deposited there
Please do not use two-wheelers
cfg.positions = {
{name = nil, coords = vector3(1583.4678, 968.0986, 78.3858), heading = 333.5837},
{name = nil, coords = vector3(657.2376, -413.3504, 41.7117), heading = 227.4397},
{name = nil, coords = vector3(873.6041, -599.1790, 58.2042), heading = 129.9452},
{name = nil, coords = vector3(1030.7628, -779.6655, 58.0147), heading = 226.1821},
{name = "phantom", coords = vector3(868.8824, -913.5225, 26.0070), heading = 90.6582},
{name = nil, coords = vector3(424.1226, -1154.6743, 29.2919), heading = 90.8795},
{name = nil, coords = vector3(-282.4560, -1192.8695, 37.0847), heading = 86.6266},
{name = "bus", coords = vector3(-430.0706, -1293.0486, 21.5525), heading = 180.6571},
}
Disptach Msg - Notification message
cfg.disptachmsg = "There is a vehicle on fire on the road"
Fireout - Indication of the engine status
cfg.fireout = "Engine fire"
Fireout Txt - Message after the extinguished fire
cfg.fireoutTxt = "The fire is out!"
Dispatch file
Go to gmf_vehicleBurn/server/dispatch.lua
Debug dispatch
dispatch.lua
RegisterNetEvent('gmf_vehicleBurn:server:dispatch')
AddEventHandler('gmf_vehicleBurn:server:dispatch', function(job, message, coords)
print("-=-=-=-=-=-=-=-=-=-=-=-")
print("-=-=-=-=-Alarm-=-=-=-=-")
print("Job: " .. job)
print("Coords: " .. coords)
print("Message: " .. message)
print("Heading: " .. heading)
print("-=-=-=-=-=-=-=-=-=-=-=-")
end)
EmergencyDispatch dispatch
dispatch.lua
RegisterNetEvent('gmf_vehicleBurn:server:dispatch')
AddEventHandler('gmf_vehicleBurn:server:dispatch', function(job, message, coords)
TriggerEvent('emergencydispatch:emergencycall:new', job, message, coords, true)
end)
Gc-Phone dispatch
dispatch.lua
RegisterNetEvent('gmf_vehicleBurn:server:dispatch')
AddEventHandler('gmf_vehicleBurn:server:dispatch', function(job, message, coords)
TriggerEvent('esx_addons_gcphone:startCall', job, message, coords)
end)
Ace Permissions
To use '/carburn' add these to your Config
add_ace group.admin gmf_vehicleBurn:carburn allow
To use '/carburndel' add these to your Config
add_ace group.admin gmf_vehicleBurn:carburndel allow
Any problems or questions?
Then contact us in our Discord