feat(Vehicle): Instant into vehicle (globals) (#181)
This commit is contained in:
parent
1088ec6d4b
commit
135d3b80ff
@ -6,9 +6,15 @@
|
||||
#include "pointers.hpp"
|
||||
#include "script.hpp"
|
||||
#include "teleport.hpp"
|
||||
#include "script_global.hpp"
|
||||
|
||||
namespace big::vehicle
|
||||
{
|
||||
inline void go_into_personal_vehicle()
|
||||
{
|
||||
*script_global(2671447).at(8).as<int*>() = 1;
|
||||
}
|
||||
|
||||
inline void bring(Vehicle veh, Vector3 location, bool put_in = true)
|
||||
{
|
||||
Vector3 vecVehicleLocation = ENTITY::GET_ENTITY_COORDS(veh, true);
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include "util/vehicle.hpp"
|
||||
#include "views/view.hpp"
|
||||
|
||||
|
||||
namespace big
|
||||
{
|
||||
void view::vehicle() {
|
||||
@ -24,6 +25,13 @@ namespace big
|
||||
vehicle::repair(self::veh);
|
||||
});
|
||||
|
||||
components::button("Instant in personal vehicle", [] {
|
||||
if (!*g_pointers->m_is_session_started) return g_notification_service->push_warning("WARNING", "Go into GTA V Online to use this option");
|
||||
|
||||
vehicle::go_into_personal_vehicle();
|
||||
|
||||
});
|
||||
|
||||
if (ImGui::TreeNode("Paint"))
|
||||
{
|
||||
ImGui::ListBox("RGB Type", &g->vehicle.rainbow_paint, vehicle::rgb_types, 3);
|
||||
|
Reference in New Issue
Block a user