OnClientPlayerJoin

From Multi Theft Auto: Wiki
Revision as of 17:03, 14 September 2007 by Arc (talk | contribs)
Jump to navigation Jump to search

This event is triggered when the local player joins a server.

Parameters

None

Example

This client side script outputs some text to the player when he joins.

function onPlayerJoin ()                              -- When the player joins
	outputChatBox("We be gangstas!", 255, 0, 0)   -- Show him some text
end
addEventHandler ( "onClientPlayerJoin", getRootElement(), onPlayerJoin )  -- add the function as an event handler