Hey hi friends,
I would need your help I would like to do spawn vehicle faction (police, fireman)
Make spawn its vehicles when the server starts.
But I do not know how to
Thank you for your help.
Hey hi friends,
I would need your help I would like to do spawn vehicle faction (police, fireman)
Make spawn its vehicles when the server starts.
But I do not know how to
Thank you for your help.
Hello, I use:
https://forum.cfx.re/t/release-secretcars-car-only-in-local-need-to-be-fix/9913/58?u=boubi
Citizen.CreateThread(function()
local vehicle = GetHashKey(“flatbed”)
RequestModel(vehicle)
while not HasModelLoaded(vehicle) do
Citizen.Wait(0)
end
CreateVehicle(vehicle, 485.324, -1888.05, 26.1758, true, true)
CreateVehicle(vehicle, 478.099, -1279.3, 29.5393, true, true)
while true do
Wait(1)
if not IsAnyVehicleNearPoint(x, y, z, 10.0) then
CreateVehicle(vehicle, x, y, z, h, true, true)
end
end
end)
Thank you ! i’m try it now
It does not work: '(
Hello, I do not understand me it works without problem
Hi guyz.
Do you know if you can change the direction of the vehicle when it spawn?
Maybe the H of this is? And if so, to what value is it used?
Of this :
CreateVehicle(vehicle, x, y, z, h, true, true)
Yes, H is the heading of the vehicle. it’s in decimals.