OnPlayerChatReady
onPlayerChatReady
Triggered by the bundled chat resource when a player's client chat UI reports that it is ready.
Availability
This event is available in server-side scripts.
Callback signature
onPlayerChatReady(playerId)
Parameters
| Name | Type | Description |
|---|---|---|
playerId |
int |
The player whose chat UI became ready. |
Examples
Handle the event:
addEventHandler("onPlayerChatReady", root, function(playerId)
outputChatBox("Chat is ready.", playerId, 120, 210, 120)
end)
Notes
- This is a public event supplied by the bundled
chatresource rather than the native runtime.