diff --git a/src/game/features/teleport/TpToWaypoint.cpp b/src/game/features/teleport/TpToWaypoint.cpp index d6bb1d9..153b604 100644 --- a/src/game/features/teleport/TpToWaypoint.cpp +++ b/src/game/features/teleport/TpToWaypoint.cpp @@ -50,12 +50,12 @@ namespace YimMenu::Features virtual void OnCall() override { - if (!HUD::IS_WAYPOINT_ACTIVE()) - Notifications::Show("Teleport", "No waypoint set", NotificationType::Warning); - - auto coords = HUD::GET_BLIP_COORDS(HUD::GET_CLOSEST_BLIP_INFO_ID(HUD::GET_WAYPOINT_BLIP_ENUM_ID())); - ResolveZCoordinate(coords); - Self::GetPed().TeleportTo(coords); + if (HUD::IS_WAYPOINT_ACTIVE()) + { + auto coords = HUD::GET_BLIP_COORDS(HUD::GET_CLOSEST_BLIP_INFO_ID(HUD::GET_WAYPOINT_BLIP_ENUM_ID())); + ResolveZCoordinate(coords); + Self::GetPed().TeleportTo(coords); + } } }; @@ -84,4 +84,4 @@ namespace YimMenu::Features static TpToWaypoint _TpToWaypoint{"tptowaypoint", "Teleport to Waypoint", "Teleports you to the waypoint"}; static AutoTpToWaypoint _AutoTpToWaypoint{"autotptowaypoint", "Auto Teleport to Waypoint", "Automatically teleports you to the waypoint"}; -} \ No newline at end of file +}