# Page 1

### **Client-Side Exports**

* `Spawn('Object', hash, coords, isOrphan, keepLoad)`
  * `hash` _(number)_: The model hash of the object.
  * `coords` _(table)_: The coordinates where the object will spawn (e.g., `{x = 0, y = 0, z = 0, w = 0}`).
  * `isOrphan` _(boolean)_: Whether the object should be marked as an "orphan" for server tracking.
  * `keepLoad` _(boolean)_: Whether to keep the model loaded after spawning.
* `Spawn('RmObject', object)`
  * `object` _(Entity)_: The reference to the object to be removed.
* `Spawn('RmObjectByNetId', netId)`
  * `netId` _(number)_: The network ID of the object to be removed.
* `Spawn('Local.Object', hash, coords)`
  * `hash` _(number)_: The model hash of the object.
  * `coords` _(table)_: The coordinates where the object will spawn.

### **Server-Side Exports**

* `Spawn('Object', hash, coords, cb)`
  * `hash` _(number)_: The model hash of the object.
  * `coords` _(table)_: The coordinates where the object will spawn.
* `Spawn('RmObject', object)`
  * `object` _(Entity)_: The reference to the object to be removed.
* `Spawn('RmObjectByNetId', netId)`

### **Examples**

### Client-Side Example

```lua
local coords = {x = 100.0, y = 200.0, z = 300.0}
local hash = `prop_boxpile_07d`

exports['your_resource_name']:Spawn('Object', hash, coords, true)

```

### Server-Side Example

```lua
local coords = {x = 100.0, y = 200.0, z = 300.0}
local hash = `prop_boxpile_07d`

exports['your_resource_name']:Spawn('Object', hash, coords, function(obj, netId)
    print("Created object with Net ID:", netId)
end)

```
