mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-09-01 18:58:59 +00:00
Merge branch 'dev' into dev
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user