OnMapLoad: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 3: Line 3:
==Example==
==Example==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
addEventHandler ( "onMapLoad", root, "onMapLoad" )
function onMapLoad ()
function onMapLoad ()
outputChatBox ( "Map Loaded", root, 255, 255, 255 )
outputChatBox ( "Map Loaded", root, 255, 255, 255 )

Revision as of 17:55, 19 August 2006

This event is triggered when a map is loaded

Example


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