mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-04 00:23:27 +08:00
Fix personal vehicles getting godmode removed when you leave them. (#1907)
This commit is contained in:
parent
f0947ae489
commit
cc1beeba7c
@ -107,12 +107,8 @@ namespace big
|
|||||||
if (g_local_player)
|
if (g_local_player)
|
||||||
{
|
{
|
||||||
const auto personal_vehicle = get_personal_vehicle();
|
const auto personal_vehicle = get_personal_vehicle();
|
||||||
if (personal_vehicle)
|
apply_godmode_to_vehicle(personal_vehicle, true);
|
||||||
{
|
apply_godmode_to_vehicle(g_local_player->m_vehicle, personal_vehicle == g_local_player->m_vehicle);
|
||||||
apply_godmode_to_vehicle(personal_vehicle, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
apply_godmode_to_vehicle(g_local_player->m_vehicle);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user