feat(Teleport): Moved teleport personal vehicel to teleport tab

This commit is contained in:
Yimura
2022-01-08 23:59:32 +01:00
parent 0c13fb4225
commit 1074802d8c
3 changed files with 44 additions and 17 deletions

View File

@ -20,23 +20,6 @@ namespace big
ImGui::Checkbox("God Mode", &g.vehicle.god_mode);
ImGui::SameLine();
if (ImGui::Button("Bring Personal Vehicle"))
{
QUEUE_JOB_BEGIN_CLAUSE()
{
Vector3 location;
if (!blip::get_blip_location(location, 225, 0) && !blip::get_blip_location(location, 226, 0)) return notify::above_map("No personal vehicle found, was it destroyed?");
Vehicle veh = vehicle::get_closest_to_location(location, 2.f);
if (ENTITY::IS_ENTITY_DEAD(veh, false)) return notify::above_map("Invalid vehicle handle...");
location = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true);
vehicle::bring(veh, location);
}QUEUE_JOB_END_CLAUSE
}
if (ImGui::Button("Repair"))
{
QUEUE_JOB_BEGIN_CLAUSE()