Weave.CreateVehicle
Spawns a vehicle using advanced spoofing to hide the origin.
Syntax
Weave.CreateVehicle(model, x, y, z, heading, isNetwork, intoVehicle)Parameters
modelstringVehicle model name
xnumberX coordinate
ynumberY coordinate
znumberZ coordinate
headingnumberHeading angle
isNetworkbooleanNetwork entity
intoVehiclebooleanIf true, teleports you into the driver seat
Example
-- Spawn a zentorno at current position
local pos = Weave.Self.Pos()
Weave.CreateVehicle("zentorno", pos.x, pos.y, pos.z, 0.0, true, true)
-- Spawn a vehicle without entering it
Weave.CreateVehicle("adder", pos.x + 5, pos.y, pos.z, 90.0, true, false)