OnClientPlayerJoin: Difference between revisions

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

Revision as of 17:28, 16 February 2008