OnClientPlayerJoin: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua"> | |||
addEventHandler("onClientPlayerJoin", getRootElement(), | |||
function () | |||
outputChatBox("You've joined the server!") | |||
end | |||
) | |||
</syntaxhighlight> |
Revision as of 17:37, 6 January 2008
This event is triggered when a player joins a server. It is triggered for all players other than the local player.
Parameters
None
Source
The source of this event is the player that joined the server.
Example
addEventHandler("onClientPlayerJoin", getRootElement(), function () outputChatBox("You've joined the server!") end )