Configuration
Here you can find a breakdown of the doorOpener config
Config fileβ
Debug - To display known error sources
Config.Debug = true
Framework - To specify the framework used ('esx' or 'qbcore')
Config.Framework = "esx"
Jobs - To specify the jobs that can open doors
Config.Jobs = {"ambulance", "fire"}
AlertJob - To define the job that is alerted
Config.AlertJob = "ambulance"
MedJobs - To define the jobs that can help the patient
Config.MedJobs = {"ambulance"}
minJob - The minimum number of people in the job to start an operation
Config.minJob = 1
Dispatch Time - The time in which a dispatch is created (in minutes)
Config.dispatchtime = 30
Doors - To define the positions for an operation
Config.Doors = {
{coords = vector3(522.9944, 198.8253, 104.7442), heading = 72.3906},
{coords = vector3(106.7300, 54.7189, 81.7733), heading = 256.7394},
{coords = vector3(207.7909, 74.4866, 96.0959), heading = 257.8032},
{coords = vector3(203.8298, -98.5980, 69.4870), heading = 161.3304},
{coords = vector3(204.7180, -141.3730, 65.4788), heading = 251.6230},
{coords = vector3(307.7282, -146.2556, 67.7707), heading = 340.5658},
{coords = vector3(115.8084, -271.3227, 50.5127), heading = 69.9483},
{coords = vector3(-338.7770, 21.3313, 47.8590), heading = 76.3636},
{coords = vector3(-313.7757, 84.3356, 71.6629), heading = 185.6665},
{coords = vector3(-304.5761, 80.1117, 76.6620), heading = 1.8575},
{coords = vector3(-333.3219, 85.4193, 67.6189), heading = 265.3564},
{coords = vector3(-383.7638, 152.7999, 81.7475), heading = 105.1149},
{coords = vector3(-384.9182, 159.6042, 73.7330), heading = 98.8672},
{coords = vector3(-383.7182, 152.8941, 65.5314), heading = 99.0140},
{coords = vector3(-410.7041, 159.5835, 65.5250), heading = 312.8671},
{coords = vector3(-412.0959, 152.7846, 69.7219), heading = 261.1912},
{coords = vector3(-412.1278, 152.6935, 77.7441), heading = 254.9547},
{coords = vector3(-412.1033, 152.8222, 81.7431), heading = 256.2699},
{coords = vector3(-452.6585, 78.6926, 67.3424), heading = 276.1151},
{coords = vector3(-431.7374, 83.5673, 72.5154), heading = 357.0328},
{coords = vector3(-1709.8472, -481.0241, 41.6495), heading = 318.8257},
{coords = vector3(-1710.6985, -493.8225, 41.6194), heading = 139.5652},
{coords = vector3(-1489.9067, -671.4697, 33.3815), heading = 311.8104},
{coords = vector3(-1454.3876, -656.0026, 29.5834), heading = 32.2371},
{coords = vector3(-1182.8564, -800.4141, 25.9598), heading = 124.7272},
{coords = vector3(-1317.9236, -934.4989, 13.3571), heading = 18.6048},
{coords = vector3(-1319.7092, -935.1448, 16.3585), heading = 13.9211},
{coords = vector3(-1339.2089, -941.4075, 15.3289), heading = 286.8003},
{coords = vector3(-1349.5957, -1161.5173, 4.5072), heading = 95.1941},
{coords = vector3(-1114.7500, -1577.7875, 4.5432), heading = 33.4877},
{coords = vector3(-1057.6748, -1540.6915, 5.0489), heading = 42.2736},
{coords = vector3(-1062.9363, -1641.5266, 4.4919), heading = 1.6851},
{coords = vector3(-1011.4428, -1224.0636, 5.9464), heading = 211.2847},
{coords = vector3(279.9529, -2043.6317, 19.7676), heading = 50.2689},
{coords = vector3(290.1530, -2077.0042, 17.6636), heading = 109.4940},
{coords = vector3(443.3441, -1899.9695, 31.7366), heading = 217.1035},
{coords = vector3(552.5521, -1765.2927, 33.4426), heading = 246.3480},
{coords = vector3(454.9274, -1580.2582, 32.8242), heading = 323.3564},
{coords = vector3(172.8813, -280.5233, 50.2765), heading = 11.8645},
{coords = vector3(33.1215, -998.3304, 29.5002), heading = 342.8124},
{coords = vector3(-157.7836, -1679.3408, 36.9667), heading = 140.1837},
{coords = vector3(-35.4753, 2871.5676, 59.6102), heading = 160.5899},
{coords = vector3(347.2311, 2618.1135, 44.6718), heading = 30.8187},
{coords = vector3(1430.7039, 3671.3823, 34.8293), heading = 19.6000},
{coords = vector3(1728.4172, 3851.8604, 34.7851), heading = 211.9065},
{coords = vector3(1763.8602, 3823.5757, 34.7678), heading = 32.0739},
{coords = vector3(1803.5125, 3913.7876, 37.0569), heading = 290.3358},
{coords = vector3(1859.2739, 3865.0271, 33.0562), heading = 288.4183},
{coords = vector3(2566.7456, 4273.9751, 41.9891), heading = 233.1637},
{coords = vector3(1653.9824, 4882.3213, 42.1646), heading = 279.3252},
{coords = vector3(56.7772, 6646.3574, 32.2764), heading = 146.3830},
{coords = vector3(-166.8952, 6439.7749, 31.9159), heading = 134.3769},
{coords = vector3(-157.0078, 6409.0010, 31.9159), heading = 43.4078},
{coords = vector3(-321.4072, 6302.5410, 36.7832), heading = 315.6120},
{coords = vector3(-685.6125, 5762.9131, 17.5110), heading = 80.2167},
{coords = vector3(-701.9985, 5764.8867, 17.5110), heading = 333.0936},
}
Npcs - The spawning NPCs can be entered here
Config.Npcs = {
{type = "a_m_o_acult_02"},
{type = "s_m_y_ammucity_01"},
{type = "cs_beverly"},
{type = "a_m_o_beach_01"},
{type = "cs_denise"},
{type = "a_f_y_eastsa_02"},
{type = "a_f_m_fatwhite_01"},
{type = "a_f_y_indian_01"},
{type = "csb_imran"},
{type = "ig_maude"},
{type = "cs_mrsphillips"},
{type = "a_f_o_salton_01"},
{type = "a_m_m_salton_04"},
{type = "a_m_m_trampbeac_01"},
{type = "a_m_o_tramp_01"},
}
Texts - The dispatch texts for the inserts
Config.Texts = {
{text = "Hello, my neighbor is somehow not here for a week. Can you come here?"},
{text = "I think my friend who lives next door to me needs help, I haven't seen her for days."},
{text = "Hello, this is Mr. MΓΌller, I think something terrible has happened to my neighbor."},
{text = "You have to come very quickly, I think my neighbor has fallen in his apartment!"},
}
OpenDoor - Message when opening the door
Config.OpenDoor = "The door is opened"
FirefighterSpeach - Message during door opening
Config.firefighterSpeach = "This is the fire department! Open the door!"
OpenDoorEmpty - Message when the apartment is empty
Config.OpenDoorEmpty = "The apartment is empty! False alarm!"
OpenDoorNoNeedOne - Person is surprised
Config.OpenDoorNoNeedOne = "Oh... Uh... Hello? How can I help you?"
OpenDoorNoNeedTwo - Denies an emergency
Config.OpenDoorNoNeedTwo = "What called the fire department? No, I didn't."
OpenDoorNoNeedThree - Did not hear the fire department
Config.OpenDoorNoNeedThree = "They rang the bell? I must have missed that."
OpenDoorNoNeedFour - Does not need help
Config.OpenDoorNoNeedFour = "No, I'm fine and I don't need any help."
OpenDoorNoNeedFive - Goes back in
Config.OpenDoorNoNeedFive = "I'm going back in, have a nice day."
OpenDoorNeedOne - Person says they need help
Config.OpenDoorNeedOne = "Hello, good that you are here! I need help!"
OpenDoorNeedTwo - Says she couldn't have opened the door herself
Config.OpenDoorNeedTwo = "I couldn't have opened the door myself!"
OpenDoorNeedThree - Asks if a Medic is coming
Config.OpenDoorNeedThree = "Is a doctor coming to help me?"
OpenDoorNeedMedicInteract - Interaction with the NPC
Config.OpenDoorNeedMedicInteract = "To help person [E]"
OpenDoorNeedMedicOne - Thank you
Config.OpenDoorNeedMedicOne = "Thank you for the help!"
OpenDoorNeedMedicTwo - Goes to the family doctor
Config.OpenDoorNeedMedicTwo = "I'm going to the family doctor later."
OpenDoorNeedMedicThree - Go back inside
Config.OpenDoorNeedMedicThree = "But now I'm going back inside. Have a nice day."
Dispatch fileβ
Go to gmf_doorOpener/server/dispatch.lua
Debug dispatchβ
dispatch.lua
RegisterNetEvent('gmf_doorOpener:server:dispatch')
AddEventHandler('gmf_doorOpener:server:dispatch', function(job, message, coords, heading)
print("-=-=-=-=-=-=-=-=-=-=-=-")
print("-=-=-=-=-Alarm-=-=-=-=-")
print("Job: " .. job)
print("Coords: " .. coords)
print("Message: " .. message)
print("Heading: " .. heading)
print("-=-=-=-=-=-=-=-=-=-=-=-")
end)
EmergencyDispatch dispatchβ
dispatch.lua
RegisterNetEvent('gmf_doorOpener:server:dispatch')
AddEventHandler('gmf_doorOpener:server:dispatch', function(job, message, coords, heading)
TriggerEvent('emergencydispatch:emergencycall:new', Job, message, coords, true)
end)
Gc-Phone dispatchβ
dispatch.lua
RegisterNetEvent('gmf_doorOpener:server:dispatch')
AddEventHandler('gmf_doorOpener:server:dispatch', function(job, message, coords, heading)
TriggerEvent('esx_addons_gcphone:startCall', job, message, coords)
end)
Any problems or questions?β
Then contact us in our Discord