mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-24 01:22:23 +08:00
feat(Teleport): Moved teleport personal vehicel to teleport tab
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user