mirror of
https://github.com/YimMenu/YimMenuV2.git
synced 2026-10-10 11:53:14 +08:00
Merge branch 'enhanced' of https://github.com/YimMenu/YimMenuV2 into enhanced
This commit is contained in:
@@ -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"};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user