OnMapLoad: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
This event is triggered when a map is loaded
__NOTOC__
 
This event is triggered when a map is loaded.


==Example==
==Example==

Revision as of 04:25, 19 November 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