OnPlayerChatReady

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 22:31, 14 August 2026 by QCherry (talk | contribs) (Update Lua event reference)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 chat resource rather than the native runtime.