OnMapUnload: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(A small edit to mine before)
mNo edit summary
Line 1: Line 1:
[[Category:Incomplete Event]]
{{Deprecated}}
{{Needs Checking|This event does not exist anymore. Remove? --[[User:OpenIDUser28|Sniper]] 00:11, 4 September 2011 (CEST)}}
This event is triggered when the map is changed or unloaded.
This event is triggered when the map is changed or unloaded.


Line 14: Line 13:


</syntaxhighlight>
</syntaxhighlight>
[[Category:Incomplete Event]]

Revision as of 18:17, 16 January 2012

Emblem-important.png This event is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be a more generic way to perform what it does.

This event is triggered when the map is changed or unloaded.

Example

This example displays a message in the textbox when the map is changed / unloaded


addEventHandler ( "onMapUnload", root, "onMapUnload" )
function onMapUnload ( )
  outputChatBox ( "Script Unloaded!", root, 255, 255, 255 )
end