mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-10 03:08:57 +08:00
fix(Mobile): Kick player out of vehicle before spawning new
This commit is contained in:
parent
b8d7acabc3
commit
07d001f467
@ -89,6 +89,8 @@ namespace big::mobile
|
|||||||
if (*mechanic_global.at(958).as<int*>() != -1)
|
if (*mechanic_global.at(958).as<int*>() != -1)
|
||||||
return notify::display_help_text("Mechanic is not ready to deliver a vehicle right now.");
|
return notify::display_help_text("Mechanic is not ready to deliver a vehicle right now.");
|
||||||
|
|
||||||
|
TASK::CLEAR_PED_TASKS_IMMEDIATELY(PLAYER::PLAYER_PED_ID());
|
||||||
|
|
||||||
// despawn current veh
|
// despawn current veh
|
||||||
util::despawn_current_personal_vehicle();
|
util::despawn_current_personal_vehicle();
|
||||||
mors_mutual::fix_index(veh_idx);
|
mors_mutual::fix_index(veh_idx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user