fix(Mobile): Kick player out of vehicle before spawning new

This commit is contained in:
Yimura 2022-01-22 00:06:43 +01:00
parent b8d7acabc3
commit 07d001f467

View File

@ -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);