> For the complete documentation index, see [llms.txt](https://docs.rainmad.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rainmad.com/resources/scenes-draw-everywhere-v1/events-and-exports.md).

# Events & Exports

## Server Events <a href="#server-events" id="server-events"></a>

**rm\_scenes:server:onSceneCreated**

```lua
AddEventHandler('rm_scenes:server:onSceneCreated', function(data)
        print(data.creatorId)
        print(data.creatorIdentifier)
        print(data.creatorName)
        print(data.coords)
end)
```

| Key                    | Type   | Description                                           |
| ---------------------- | ------ | ----------------------------------------------------- |
| data.creatorId         | number | Source of the person who created the scene            |
| data.creatorIdentifier | string | Source identifier of the person who created the scene |
| data.creatorName       | string | Source name of the person who created the scene       |
| data.coords            | vector | Scene position                                        |

**rm\_scenes:server:onSceneDeleted**

```lua
AddEventHandler('rm_scenes:server:onSceneDeleted', function(data)
    print(data.deleterId)
    print(data.creatorIdentifier)
    print(data.creatorName )
    print(data.coords)
end)
```

| Key                    | Type   | Description                                           |
| ---------------------- | ------ | ----------------------------------------------------- |
| data.deleterId         | number | Source of the person who deleted the decal            |
| data.creatorIdentifier | string | Source identifier of the person who created the decal |
| data.creatorName       | string | Source name of the person who created the decal       |
| data.coords            | vector | Scene position                                        |

## **Server Exports**

**openSceneList**

```lua
exports.rm_scenes:openSceneList(source --[[number]])
```

**openSceneCreation**

```lua
exports.rm_scenes:openSceneCreation(source --[[number]])
```
