OnResourceUnload: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
[[Category:Incomplete Event]]
This function doesnt exist, its [[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>

Revision as of 11:57, 26 January 2007

This function doesnt exist, its onResourceStop