Notifications Update!

+ Added notifications (EGRP-Notifications) exports to many different scripts including Engine-Toggle, Seatbelt, CarWipe and Head-Tags.
This commit is contained in:
Jacob
2022-04-27 22:31:31 +01:00
parent d1a52d3159
commit bfea14f326
37 changed files with 279 additions and 23 deletions
+8 -8
View File
@@ -1,14 +1,14 @@
RegisterNetEvent("delall")
AddEventHandler("delall", function ()
if Config.alerts then
exports['okokNotify']:Alert("WARNING", "Vehicles will be wiped in 1 minute. Stay in your vehicle if you do not want it to be deleted.", 5000, 'warning')
TriggerEvent("chat:addMessage", {color = { 255, 0, 0},multiline = false,args = {"[SYSTEM]", "Vehicles will be wiped in ^*^11 minute.^r Stay in your vehicle if you do not want it to be deleted."}})
exports['EGRP-Notifications']:Warning("System", "Vehicles will be wiped in 1 minute. Stay in your vehicle to prevent deletion.", "top", 5000, true)
--TriggerEvent("chat:addMessage", {color = { 255, 0, 0},multiline = false,args = {"[SYSTEM]", "Vehicles will be wiped in ^*^11 minute.^r Stay in your vehicle if you do not want it to be deleted."}})
Citizen.Wait(30000)
exports['okokNotify']:Alert("WARNING", "Vehicles will be wiped in 30 seconds. Stay in your vehicle if you do not want it to be deleted.", 5000, 'warning')
TriggerEvent("chat:addMessage", {color = { 255, 0, 0},multiline = false,args = {"[SYSTEM]", "Vehicles will be wiped in ^*^130 seconds.^r Stay in your vehicle if you do not want it to be deleted."}})
exports['EGRP-Notifications']:Warning("System", "Vehicles will be wiped in 30 seconds. Stay in your vehicle to prevent deletion.", "top", 5000, true)
--TriggerEvent("chat:addMessage", {color = { 255, 0, 0},multiline = false,args = {"[SYSTEM]", "Vehicles will be wiped in ^*^130 seconds.^r Stay in your vehicle if you do not want it to be deleted."}})
Citizen.Wait(25000)
exports['okokNotify']:Alert("WARNING", "Vehicles will be wiped in 5 seconds. Stay in your vehicle if you do not want it to be deleted.", 5000, 'warning')
TriggerEvent("chat:addMessage", {color = { 255, 0, 0},multiline = false,args = {"[SYSTEM]", "Vehicles will be wiped in ^*^15 seconds.^r Stay in your vehicle if you do not want it to be deleted."}})
exports['EGRP-Notifications']:Warning("System", "Vehicles will be wiped in 5 seconds. Stay in your vehicle to prevent deletion.", "top", 5000, true)
--TriggerEvent("chat:addMessage", {color = { 255, 0, 0},multiline = false,args = {"[SYSTEM]", "Vehicles will be wiped in ^*^15 seconds.^r Stay in your vehicle if you do not want it to be deleted."}})
Citizen.Wait(5000)
end
Citizen.Wait(1000)
@@ -73,7 +73,7 @@ AddEventHandler("delall", function ()
end
end
if Config.DoneNotify then
exports['okokNotify']:Alert("WARNING", "Vehicles have been wiped!", 5000, 'warning')
TriggerEvent("chat:addMessage", {color = { 255, 0, 0},multiline = false,args = {"[SYSTEM]", "Vehicles have been wiped!"}})
exports['EGRP-Notifications']:Success("System", "Vehicles have been successfully wiped!", "top", 5000, true)
--TriggerEvent("chat:addMessage", {color = { 255, 0, 0},multiline = false,args = {"[SYSTEM]", "Vehicles have been wiped!"}})
end
end)