description |
---|
List of internal events Sandbox has |
{% tabs %} {% tab title="JavaScript" %}
sandbox.on("event", (arg1, arg2) => {
console.log("Example Event")
});
{% endtab %}
{% tab title="Lua" %}
AddEventHandler("event", function(arg1, arg2)
print("Example Event")
end)
{% endtab %} {% endtabs %}
onResourceLoad(): void
An event that is run after a resource has started.
Parameters none
Returns void
Side both
onResourceUnload(): void
An event that is run before a resource is stopped.
Parameters none
Returns void
Side both