Added variables for common self natives

This commit is contained in:
xM4ddy
2022-05-07 18:27:59 -04:00
parent 07bdd6a927
commit 0832ae4603
19 changed files with 67 additions and 59 deletions

View File

@ -30,9 +30,7 @@ namespace big
Vehicle veh = globals::get_personal_vehicle();
if (ENTITY::IS_ENTITY_DEAD(veh, false)) return g_notification_service->push_error("Teleport", "Invalid vehicle handle...");
Vector3 location = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true);
vehicle::bring(veh, location);
vehicle::bring(veh, self::pos);
});
components::button("Teleport to Personal Vehicle", [] {

View File

@ -64,7 +64,7 @@ namespace big
{
components::selectable(item["DisplayName"], item["Name"] == search, [&item]
{
const auto location = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), true);
const auto location = self::pos;
const Vehicle veh = vehicle::spawn(item["Name"], location, 0.f);
if (g->spawn.spawn_inside)

View File

@ -19,9 +19,8 @@ namespace big
ImGui::BeginGroup();
components::button("Repair", [] {
Vehicle veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
vehicle::repair(veh);
vehicle::repair(self::veh);
});
if (ImGui::TreeNode("Paint"))