mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 11:01:43 +00:00
fix(vehicle): delete the vehicle
This commit is contained in:
+2
-1
@@ -466,11 +466,12 @@ AddEventHandler('esx_taxijob:hasEnteredMarker', function(zone)
|
||||
if zone == 'VehicleDeleter' then
|
||||
|
||||
local playerPed = GetPlayerPed(-1)
|
||||
local vehicle = GetVehiclePedIsIn(playerPed, false)
|
||||
|
||||
if IsPedInAnyVehicle(playerPed, false) then
|
||||
CurrentAction = 'delete_vehicle'
|
||||
CurrentActionMsg = _U('store_veh')
|
||||
CurrentActionData = {}
|
||||
CurrentActionData = { vehicle = vehicle }
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user