| Property | Value |
|---|---|
| Native Name | CREATE_OBJECT |
| Hash | 0x2F7AA05C |
| Return Type | Entity |
| API Set | server |
| Parameters | modelHash (Hash), x (float), y (float), z (float), isNetwork (BOOL), netMissionEntity (BOOL), doorFlag (BOOL) |
Description: Creates an object (prop) with the specified model at the specified position, offset on the Z axis by the radius of the object's model. This object will initially be owned by the creating script as a mission entity, and the model should be loaded already (e.g. using REQUEST_MODEL).
This is the server-side RPC native equivalent of the client native CREATE_OBJECT.
Parameters
modelHash(Hash) — The model to spawn.x(float) — Spawn coordinate X component.y(float) — Spawn coordinate Y component.z(float) — Spawn coordinate Z component, 'ground level'.isNetwork(BOOL) — Whether to create a network object for the object. If false, the object exists only locally.netMissionEntity(BOOL) — Whether to register the object as pinned to the script host in the R* network model.doorFlag(BOOL) — False to create a door archetype (archetype flag bit 26 set) as a door. Required to be set to true to create door models in network mode.