Added variables for common self natives
This commit is contained in:
@ -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", [] {
|
||||
|
@ -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)
|
||||
|
@ -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"))
|
||||
|
Reference in New Issue
Block a user