OnResourceStop: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
 
Line 9: Line 9:
|cancel = true
|cancel = true
|exampleLua = addEventHandler("OnResourceStop", function(event,resource,stoppingForRestart)
|exampleLua = addEventHandler("OnResourceStop", function(event,resource,stoppingForRestart)
outputChatBox("Resource ".. resouce.name .." has stopped."..(stoppingForRestart and " (restarting)" or ""), COLOUR_RED)
message("Resource ".. resouce.name .." has stopped."..(stoppingForRestart and " (restarting)" or ""), COLOUR_RED)
end)
end)
}}
}}
7,072

edits

Navigation menu