Improved chat messages.

+ Improved the output chat messages for CarWipe resource.
This commit is contained in:
Jacob
2022-04-23 22:09:54 +01:00
parent 75d13d0d0b
commit 2f34af685d
+4 -4
View File
@@ -1,11 +1,11 @@
RegisterNetEvent("delall")
AddEventHandler("delall", function ()
if Config.alerts then
TriggerEvent("chatMessage", '', {255, 255, 255}, "^*^4[^8System^4]:^7 Vehicles will be wiped in 1 minute. Stay in your vehicle if you do not want it to be deleted.")
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)
TriggerEvent("chatMessage", '', {255, 255, 255}, "^*^4[^8System^4]:^7 Vehicles will be wiped in 30 seconds. Stay in your vehicle if you do not want it to be deleted.")
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)
TriggerEvent("chatMessage", '', {255, 255, 255}, "^*^4[^8System^4]:^7 Vehicles will be wiped in 5 seconds. Stay in your vehicle if you do not want it to be deleted.")
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)
@@ -70,6 +70,6 @@ AddEventHandler("delall", function ()
end
end
if Config.DoneNotify then
TriggerEvent("chatMessage", '', {255, 255, 255}, "^*^4[^8System^4]:^1 Vehicles have been wiped!")
TriggerEvent("chat:addMessage", {color = { 255, 0, 0},multiline = false,args = {"[SYSTEM]", "Vehicles have been wiped!"}})
end
end)