OnMapLoad: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 2: Line 2:


==Example==
==Example==
This example displays a message in the textbox when you load a map containing this lua
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">



Revision as of 18:05, 19 August 2006

This event is triggered when a map is loaded

Example

This example displays a message in the textbox when you load a map containing this lua


addEventHandler ( "onMapLoad", root, "onMapLoad" )
function onMapLoad ()
	outputChatBox ( "Map Loaded", root, 255, 255, 255 )
end