Merge branch 'dev' into dev

This commit is contained in:
BerkieBb
2022-03-01 20:08:59 +01:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -59,6 +59,7 @@ RegisterNetEvent('QBCore:Command:SpawnVehicle', function(vehName)
TaskWarpPedIntoVehicle(ped, vehicle, -1)
SetVehicleFuelLevel(vehicle, 100.0)
SetModelAsNoLongerNeeded(vehicle)
TriggerEvent("vehiclekeys:client:SetOwner", QBCore.Functions.GetPlate(vehicle))
end)
+4 -1
View File
@@ -599,6 +599,9 @@ function QBCore.Functions.SetVehicleProperties(vehicle, props)
if props.fuelLevel then
SetVehicleFuelLevel(vehicle, props.fuelLevel + 0.0)
end
if props.oilLevel then
SetVehicleOilLevel(vehicle, props.oilLevel)
end
if props.dirtLevel then
SetVehicleDirtLevel(vehicle, props.dirtLevel + 0.0)
end
@@ -933,4 +936,4 @@ function QBCore.Functions.StartParticleOnEntity(dict, ptName, looped, entity, bo
end
end
return particleHandle
end
end