From 07d001f4672bf6574802b4cb1b62b7f973e9b87c Mon Sep 17 00:00:00 2001 From: Yimura Date: Sat, 22 Jan 2022 00:06:43 +0100 Subject: [PATCH] fix(Mobile): Kick player out of vehicle before spawning new --- BigBaseV2/src/util/mobile.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BigBaseV2/src/util/mobile.hpp b/BigBaseV2/src/util/mobile.hpp index 31141b37..f6ef33e4 100644 --- a/BigBaseV2/src/util/mobile.hpp +++ b/BigBaseV2/src/util/mobile.hpp @@ -89,6 +89,8 @@ namespace big::mobile if (*mechanic_global.at(958).as() != -1) 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 util::despawn_current_personal_vehicle(); mors_mutual::fix_index(veh_idx);