OnResourceStart: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 6: Line 6:
|desc = a resource has started. The event is triggered after all script files have been ran in the resource's meta.xml file.
|desc = a resource has started. The event is triggered after all script files have been ran in the resource's meta.xml file.
|arg1 = Resource resource The resource which has started.
|arg1 = Resource resource The resource which has started.
|note = This event can be used with [[bindEventHandler|bindEventHandler]].
|notes = This event can be used with [[bindEventHandler|bindEventHandler]].<br>
The [[OnResourceReady|OnResourceReady]] is also called IF the resource is ready (ready = all files downloaded).
|cancel = true
|cancel = true
|exampleLua = addEventHandler("OnResourceStart", function(event,resource)
|exampleLua = addEventHandler("OnResourceStart", function(event,resource)
2,783

edits