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 1/2] 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 From 0d7971fefbf76a733bf738902a2ac5e5465fb435 Mon Sep 17 00:00:00 2001 From: Alex Garcio <855331+RedAlex@users.noreply.github.com> Date: Sat, 14 Jul 2018 18:10:50 -0400 Subject: [PATCH 2/2] Fix space --- client/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.lua b/client/main.lua index 713300e7..c4f2fa0f 100644 --- a/client/main.lua +++ b/client/main.lua @@ -1477,7 +1477,7 @@ AddEventHandler('esx_policejob:putInVehicle', function() if freeSeat ~= nil then TaskWarpPedIntoVehicle(playerPed, vehicle, freeSeat) - IsDragged = false + IsDragged = false end end