From c6403fdc4bf1f3355dfb3eb33d75e00922a8fea2 Mon Sep 17 00:00:00 2001 From: ChatDisabled <44729807+ChatDisabled@users.noreply.github.com> Date: Sun, 21 Aug 2022 18:28:17 +0200 Subject: [PATCH] client/events.lua --- client/events.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/events.lua b/client/events.lua index fe7d513..145197a 100644 --- a/client/events.lua +++ b/client/events.lua @@ -37,7 +37,7 @@ RegisterNetEvent('QBCore:Command:GoToMarker', function() local blipMarker = GetFirstBlipInfoId(8) if not DoesBlipExist(blipMarker) then - QBCore.Functions.Notify('No Waypoint Set.', "error", 5000) + QBCore.Functions.Notify(Lang:t("notify.nowp"), "error", 5000) return 'marker' end @@ -108,12 +108,12 @@ RegisterNetEvent('QBCore:Command:GoToMarker', 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) - QBCore.Functions.Notify('Error While Teleporting.', "error", 5000) + QBCore.Functions.Notify(Lang:t("notify.ewtp"), "error", 5000) end -- If Z coord was found, set coords in found coords. SetPedCoordsKeepVehicle(ped, x, y, groundZ) - QBCore.Functions.Notify('Teleported To Waypoint.', "success", 5000) + QBCore.Functions.Notify(Lang:t("notify.tptw"), "success", 5000) end) -- Vehicle Commands