feat (vehicles): Updated Missing Vehicle Properties

[Update] Missing Vehicle Properties
This commit is contained in:
Idris Dev
2022-03-01 18:20:48 +11:00
committed by GitHub
2 changed files with 135 additions and 25 deletions
+2
View File
@@ -61,7 +61,9 @@ RegisterNetEvent('QBCore:Command:SpawnVehicle', function(vehName)
end
local vehicle = CreateVehicle(hash, GetEntityCoords(ped), GetEntityHeading(ped), true, false)
TaskWarpPedIntoVehicle(ped, vehicle, -1)
SetVehicleFuelLevel(vehicle, 100.0)
SetModelAsNoLongerNeeded(vehicle)
TriggerEvent("vehiclekeys:client:SetOwner", QBCore.Functions.GetPlate(vehicle))
end)