From 6300cd1d8b12ab8de6448ffd8f8dcaa331f8bdc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20N=27gadi?= Date: Wed, 16 Aug 2017 16:59:38 +0200 Subject: [PATCH] Fix delete vehicle --- client/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'