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">
function [[onMapLoad]] ()
function onMapLoad ()
[[outputChatBox]] ( "Map Loaded", root, 255, 255, 255 )
outputChatBox ( "Map Loaded", root, 255, 255, 255 )
end
end


</syntaxhighlight>
</syntaxhighlight>

Revision as of 02:22, 19 August 2006

This event is triggered when a map is loaded

Example

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