feat(Vendor): Updated GTAV-Classes

This commit is contained in:
Yimura 2021-12-22 13:19:30 +01:00
parent e4e3aa5a17
commit a3c86ddc53
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
4 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@ namespace big
if (!g.vehicle.god_mode || g_local_player == nullptr || g_local_player->m_vehicle == nullptr)
return;
if (g_local_player->m_in_vehicle & (int)ePedTask::TASK_FOOT)
if (g_local_player->m_ped_task_flag & (int)ePedTask::TASK_FOOT)
{
g_local_player->m_vehicle->m_deform_god = 0x8C;
g_local_player->m_vehicle->m_godmode = 0x1;

View File

@ -11,7 +11,7 @@ namespace big
ImGui::SetNextWindowPos({ 50, 50 }, ImGuiCond_FirstUseEver);
if (g.window.handling && ImGui::Begin("Handling", &g.window.handling))
{
if (g_local_player == nullptr || g_local_player->m_vehicle == nullptr || g_local_player->m_in_vehicle & (int)ePedTask::TASK_FOOT)
if (g_local_player == nullptr || g_local_player->m_vehicle == nullptr || g_local_player->m_ped_task_flag & (int)ePedTask::TASK_FOOT)
{
ImGui::Text("Please enter a vehicle.");

View File

@ -21,7 +21,7 @@ namespace big
int vehicle_service::attempt_save()
{
if (g_local_player == nullptr || g_local_player->m_in_vehicle & (int)ePedTask::TASK_FOOT || g_local_player->m_vehicle == nullptr)
if (g_local_player == nullptr || g_local_player->m_ped_task_flag & (int)ePedTask::TASK_FOOT || g_local_player->m_vehicle == nullptr)
return -1;
if (m_handling_backup.find(g_local_player->m_vehicle->m_handling->m_model_hash) != m_handling_backup.end())
return 0;

2
vendor/GTAV-Classes vendored

@ -1 +1 @@
Subproject commit f2853174b784da48bb0d418d73bf161510ab6fe9
Subproject commit a069ad9316e70f612a937f5bda31fcc36dc38441