Search…
Events
List of internal events Sandbox has

Using Events

JavaScript
Lua
1
sandbox.on("event", (arg1, arg2) => {
2
console.log("Example Event")
3
});
Copied!
1
AddEventHandler("event", function(arg1, arg2)
2
print("Example Event")
3
end)
Copied!

Core Events

onResourceLoad

1
onResourceLoad(): void
Copied!
An event that is run after a resource has started. Parameters none Returns void Side both

onResourceUnload

1
onResourceUnload(): void
Copied!
An event that is run before a resource is stopped. Parameters none Returns void Side both

Chat Events

chat:addMessage