Skip to main content
Shared Runs in your resource.

On

string
required
Event name. Use UgCore.Enums.Events values for core events.
fun(...)
required
Called with the event arguments.
integer
Pass to Off to remove the handler.
ug-core:* events are dropped unless ug-core triggered them. Dropped events log at Debug.

Once

Like On, but the handler runs at most once. A dropped spoofed event does not use it up.

Off

boolean
false for unknown or already removed ids.

Emit

string
required
MUST start with your resource name, such as my-shop:Purchased. Raises otherwise.
Uses a local event: every resource on the same side receives it.

Example

See every core event in the Events reference.