Merge branch 'enhanced' of https://github.com/YimMenu/YimMenuV2 into enhanced

This commit is contained in:
maybegreat48
2025-04-09 13:37:16 -04:00
+7 -7
View File
@@ -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"};
}
}