OnResourceUnload

From Multi Theft Auto: Wiki
Revision as of 20:37, 25 January 2007 by BrophY (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Example

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


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