mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-08-31 18:28:52 +00:00
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:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user