2022-02-28 23:04:56 +01:00
|
|
|
#include "views/view.hpp"
|
|
|
|
#include "fiber_pool.hpp"
|
|
|
|
#include "util/globals.hpp"
|
|
|
|
#include "util/teleport.hpp"
|
|
|
|
#include "util/vehicle.hpp"
|
|
|
|
|
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
void view::teleport() {
|
|
|
|
|
|
|
|
ImGui::Text("Blips:");
|
|
|
|
|
|
|
|
components::button("Waypoint", [] {
|
|
|
|
teleport::to_waypoint();
|
|
|
|
});
|
|
|
|
|
|
|
|
components::button("Objective", [] {
|
2022-05-10 05:00:50 +08:00
|
|
|
teleport::to_objective();
|
2022-02-28 23:04:56 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
ImGui::Text("Vehicles:");
|
|
|
|
|
|
|
|
components::button("Bring Personal Vehicle", [] {
|
|
|
|
Vehicle veh = globals::get_personal_vehicle();
|
2022-03-02 00:21:29 +01:00
|
|
|
if (ENTITY::IS_ENTITY_DEAD(veh, false)) return g_notification_service->push_error("Teleport", "Invalid vehicle handle...");
|
2022-02-28 23:04:56 +01:00
|
|
|
|
2022-05-07 18:27:59 -04:00
|
|
|
vehicle::bring(veh, self::pos);
|
2022-02-28 23:04:56 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
components::button("Teleport to Personal Vehicle", [] {
|
|
|
|
Vehicle veh = globals::get_personal_vehicle();
|
2022-03-02 00:21:29 +01:00
|
|
|
if (ENTITY::IS_ENTITY_DEAD(veh, false)) return g_notification_service->push_error("Teleport", "Invalid vehicle handle...");
|
2022-02-28 23:04:56 +01:00
|
|
|
|
|
|
|
teleport::to_coords(
|
|
|
|
ENTITY::GET_ENTITY_COORDS(veh, true)
|
|
|
|
);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|