OnClientPlayerJoin: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 11: Line 11:
==Example==
==Example==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
addEventHandler("OnClientPlayerJoin", getRootElement(),onLocalPlayerJoin)
function localPlayerJoin()
function onLocalPlayerJoin()
outputChatBox("You've joined the server!")
outputChatBox("You've joined the server!")
end
end
addEventHandler("OnClientPlayerJoin", getRootElement(), localPlayerJoin)
</syntaxhighlight>
</syntaxhighlight>



Revision as of 19:42, 16 February 2008