# onClientResourceStart (Client)

> Fired when a resource has finished starting, after its scripts have run.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Event
- **Side**: Client
- **Category**: Resources and modules
- **URL**: https://wiki.mymp.gg/en/onClientResourceStart

## Syntax

```lua
addEventHandler("onClientResourceStart", root, function(resource startedResource) ... end)
```

## Handler parameters

| Name | Type | Description |
| --- | --- | --- |
| `startedResource` | `resource` | The resource that started. |

## Source

The element of the resource that started.

With a handler on `resourceRoot`, only the resource itself; with one on `root`, every resource.

## Example

```lua
addEventHandler("onClientResourceStart", resourceRoot, function(startedResource)
    outputDebugString(getResourceName(startedResource) .. " is ready")
end)
```

## See also

- [onClientResourceStop (Client)](https://wiki.mymp.gg/en/onClientResourceStop.md): Fired when a resource is about to stop, while its scripts and elements still exist.
- [getResourceName (Shared)](https://wiki.mymp.gg/en/getResourceName.md): Returns a resource's name.
- [getThisResource (Shared)](https://wiki.mymp.gg/en/getThisResource.md): Returns the resource the script is running in.
