diff --git a/client/main.lua b/client/main.lua index 585a8036..f731549a 100644 --- a/client/main.lua +++ b/client/main.lua @@ -978,7 +978,7 @@ AddEventHandler('esx_policejob:hasEnteredMarker', function(station, part, partNu if IsPedInAnyVehicle(playerPed, false) then - local vehicle = GetClosestVehicle(coords.x, coords.y, coords.z, 3.0, 0, 71) + local vehicle = GetVehicelPedIsIn(playerPed, false) if DoesEntityExist(vehicle) then CurrentAction = 'delete_vehicle'