mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-01 15:01:45 +00:00
Implemented store vehicle, CurrentAction living its own life
This commit is contained in:
+8
-1
@@ -186,6 +186,13 @@ end
|
||||
|
||||
function StoreBoatInGarage(vehicle)
|
||||
|
||||
local vehicleProps = ESX.Game.GetVehicleProperties(vehicle)
|
||||
|
||||
ESX.TriggerServerCallback('esx_boat:storeVehicle', function (rowsChanged)
|
||||
ESX.Game.DeleteVehicle(vehicle)
|
||||
ESX.ShowNotification(_U('garage_stored'))
|
||||
end, vehicleProps.plate)
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -219,4 +226,4 @@ function getVehicleModelFromHash(hash)
|
||||
end
|
||||
|
||||
return 'Unknown hash [' .. hash .. ']'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user