From 242d577128fc6ba9ccd4664d4267150d7f48bf9d Mon Sep 17 00:00:00 2001 From: Kasey FItton Date: Thu, 24 Oct 2024 14:23:25 +0100 Subject: [PATCH] fix(es_extended/client/main): Correct Notification Params for TPM --- [core]/es_extended/client/main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/[core]/es_extended/client/main.lua b/[core]/es_extended/client/main.lua index 99d4f18c..50c8ecfe 100644 --- a/[core]/es_extended/client/main.lua +++ b/[core]/es_extended/client/main.lua @@ -587,7 +587,7 @@ AddEventHandler("esx:tpm", function() end local blipMarker = GetFirstBlipInfoId(8) if not DoesBlipExist(blipMarker) then - ESX.ShowNotification(TranslateCap("tpm_nowaypoint"), true, false, 140) + ESX.ShowNotification(TranslateCap("tpm_nowaypoint"), "error") return "marker" end @@ -650,12 +650,12 @@ AddEventHandler("esx:tpm", function() -- If we can't find the coords, set the coords to the old ones. -- We don't unpack them before since they aren't in a loop and only called once. SetPedCoordsKeepVehicle(ped, oldCoords["x"], oldCoords["y"], oldCoords["z"] - 1.0) - ESX.ShowNotification(TranslateCap("tpm_success"), true, false, 140) + ESX.ShowNotification(TranslateCap("tpm_success"), "success") end -- If Z coord was found, set coords in found coords. SetPedCoordsKeepVehicle(ped, x, y, groundZ) - ESX.ShowNotification(TranslateCap("tpm_success"), true, false, 140) + ESX.ShowNotification(TranslateCap("tpm_success"), "success") end) end)