mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-07-01 12:02:55 +08:00
fix: Context Menu crash & Vehicle God mode (#1571)
* fix(ContextMenu): nullptr dereference while drawing box * fix(ESP): Vehicle God mode check if ped is actually driving
This commit is contained in:
@ -102,10 +102,12 @@ namespace big
|
||||
}
|
||||
}
|
||||
|
||||
if (auto player_vehicle = plyr->get_current_vehicle())
|
||||
if (auto player_vehicle = plyr->get_current_vehicle();
|
||||
player_vehicle &&
|
||||
(plyr->get_ped()->m_ped_task_flag & (uint32_t)ePedTask::TASK_DRIVING) &&
|
||||
(player_vehicle->m_damage_bits & (uint32_t)eEntityProofs::GOD))
|
||||
{
|
||||
if (player_vehicle->m_damage_bits & (uint32_t)eEntityProofs::GOD)
|
||||
mode_str = +"VEH_GOD";
|
||||
mode_str =+ "Vehicle God";
|
||||
}
|
||||
|
||||
if (!mode_str.empty())
|
||||
|
Reference in New Issue
Block a user