OnResourceUnload: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[Category:Incomplete Event]]
#REDIRECT [[OnResourceStop]]
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
 
<syntaxhighlight lang="lua">
 
addEventHandler ( "onResourceUnload", root, "onResourceUnload" )
function onResourceUnload ( )
  outputChatBox ( "Script Unloaded!", root, 255, 255, 255 )
end
 
</syntaxhighlight>

Latest revision as of 17:25, 26 January 2007

Redirect to: