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.
This commit is contained in:
Alex Garcio
2018-07-14 18:07:22 -04:00
committed by GitHub
parent eaa07150b8
commit ad19d8ddbb
+2 -1
View File
@@ -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
end