OnMapUnload: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
m (Visual improvement)
Line 1: Line 1:
{{Deprecated}}
{{Warning|'''This event no longer exists'''. Map unloads are synchronous (they finish before the script continues).|true}}
 
This event is triggered when the map is changed or unloaded.
This event is triggered when the map is changed or unloaded.


Line 13: Line 14:


</syntaxhighlight>
</syntaxhighlight>
==See also==
{{Map functions}}

Revision as of 12:09, 26 June 2014

Dialog-warning.png Warning: This event no longer exists. Map unloads are synchronous (they finish before the script continues).

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

See also