nanos world API Reference Unofficial documentation
Event Shared

Package.Load

Called when this package is loaded<br/><br/>This event is triggered differently depending on the situation:<br/><ul><li>When the <b>server starts</b> or you run <code>package reload all</code> the event triggers only after ALL packages are loaded.</li><li>In all other cases (<code>package load/reload</code> or <code>Package.Load/Reload</code>) the event is triggered immediately after the package is loaded/reloaded.</li></ul>

Syntax

Lua
Package.Subscribe("Load", function()
    -- il tuo codice
end)