Home
Github
Search…
2.0
Home
Scripting Reference
Introduction to Resources
Resource Manifest
Creating your first script
Events
API Guides
Terminology
Release Policy
Silica
Silica FAQ
Powered By
GitBook
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
Previous
In Java
Next - API Guides
Terminology
Last modified
10mo ago
Copy link
Contents
Using Events
Core Events
onResourceLoad
onResourceUnload
Chat Events
chat:addMessage