From 2f34af685df2dfc9d2891ee0ae44ed6cf0231b43 Mon Sep 17 00:00:00 2001 From: Jacob <42719082+ThatGuyJacobee@users.noreply.github.com> Date: Sat, 23 Apr 2022 22:09:54 +0100 Subject: [PATCH] Improved chat messages. + Improved the output chat messages for CarWipe resource. --- resources/CarWipe/client/client.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/CarWipe/client/client.lua b/resources/CarWipe/client/client.lua index a1db00c8b..852e5e6a9 100644 --- a/resources/CarWipe/client/client.lua +++ b/resources/CarWipe/client/client.lua @@ -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)