OnResourceStart: Difference between revisions

Jump to navigation Jump to search
no edit summary
m (Typo: resouce -> resource)
 
No edit summary
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = shared
|name = onResourceStart
|side = shared
|type = event
|type = event
|name = onResourceStart
|games = iii vc sa iv
|usage = a resource starts
|desc = a resource starts
|callbackParameters = Event event, Resource resource
|arg1 = Resource resource The resource which has started.
|cancellable = true
|note = This event can be used with [[bindEventHandler|bindEventHandler]].
|parameter1 = Resource resource The resource which has started.
|cancel = true
|notes = This event can be used with [[bindEventHandler|bindEventHandler]].
|exampleLua = addEventHandler("OnResourceStart", function(event,resource)
|exampleLua = addEventHandler("OnResourceStart", function(event,resource)
outputChatBox("Resource ".. resource.name .." has started.", COLOUR_RED)
outputChatBox("Resource ".. resource.name .." has started.", COLOUR_RED)
end)
end)
}}
}}
6,834

edits

Navigation menu