mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 23:07:26 +08:00

* feat(KickFromInterior): improve kick from interior Fixes #968 Fixes #953 Fixes #901 Fixes #899 Fixes #813 Fixes #726 Fixes #723 Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
23 lines
637 B
C++
23 lines
637 B
C++
#include "natives.hpp"
|
|
#include "backend/looped_command.hpp"
|
|
#include "util/teleport.hpp"
|
|
|
|
namespace big
|
|
{
|
|
class auto_tp_to_waypoint : looped_command
|
|
{
|
|
using looped_command::looped_command;
|
|
|
|
virtual void on_tick() override
|
|
{
|
|
//this is a hack to prevent the warning notify..
|
|
if (!teleport::to_blip((int)BlipIcons::Waypoint))
|
|
return;
|
|
|
|
teleport::to_waypoint();
|
|
}
|
|
};
|
|
|
|
auto_tp_to_waypoint g_auto_tp_to_waypoint("autotptowp", "Auto-Teleport To Waypoint", "Automatically teleports you to a waypoint as soon as you set one.", g.self.auto_tp);
|
|
}
|