From ad19d8ddbb95e91d6ce391f263f74ee4079a2475 Mon Sep 17 00:00:00 2001 From: Alex Garcio <855331+RedAlex@users.noreply.github.com> Date: Sat, 14 Jul 2018 18:07:22 -0400 Subject: [PATCH] Prevent teleport of handcuffed player. Set IsDragged = false after player is put in vehicule to prevent teleport of player on exit if put in a vehicule of another cops. --- client/main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/main.lua b/client/main.lua index b7d633e7..713300e7 100644 --- a/client/main.lua +++ b/client/main.lua @@ -1477,6 +1477,7 @@ AddEventHandler('esx_policejob:putInVehicle', function() if freeSeat ~= nil then TaskWarpPedIntoVehicle(playerPed, vehicle, freeSeat) + IsDragged = false end end @@ -1949,4 +1950,4 @@ function ImpoundVehicle(vehicle) ESX.Game.DeleteVehicle(vehicle) ESX.ShowNotification(_U('impound_successful')) CurrentTask.Busy = false -end \ No newline at end of file +end