| Property | Value |
|---|---|
| Native Name | CREATE_VEHICLE |
| Hash | 0xDD75460A |
| Return Type | Entity |
| API Set | server |
| Parameters | modelHash (Hash), x (float), y (float), z (float), heading (float), isNetwork (BOOL), netMissionEntity (BOOL) |
Description: Creates a vehicle with the specified model at the specified position. This vehicle will initially be owned by the creating script as a mission entity, and the model should be loaded already (e.g. using REQUEST_MODEL).
NativeDB Added Parameter 8: BOOL p7
This is the server-side RPC native equivalent of the client native CREATE_VEHICLE.
Parameters
modelHash(Hash) — The model of vehicle to spawn.x(float) — Spawn coordinate X component.y(float) — Spawn coordinate Y component.z(float) — Spawn coordinate Z component.heading(float) — Heading to face towards, in degrees.isNetwork(BOOL) — Whether to create a network object for the vehicle. If false, the vehicle exists only locally.netMissionEntity(BOOL) — Whether to register the vehicle as pinned to the script host in the R* network model.