OnResourceStop: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(No difference)

Revision as of 11:58, 26 January 2007

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 ( "onResourceStop", root, "onResourceStop" )
function onResourceStop ( )
  outputChatBox ( "Script Unloaded!", root, 255, 255, 255 )
end