> For the complete documentation index, see [llms.txt](https://stigmax.gitbook.io/tfs-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stigmax.gitbook.io/tfs-guide/interface-globalevents/globalevent-registration.md).

# Registration

### Structure

* **name**: Unique name identifier for the global event.
* **type**:
* > startup
  >
  > shutdown
  >
  > record
* **time**: Specific time (24-hour format) when the event shall execute.
* **interval**: Time interval (in milliseconds) in-between each event execution.
* **script**: Lua script file name & location (base directory is data/globalevents/scripts/)

### Examples

```markup
<globalevent name="something" interval="1000" script="something_event.lua" />

<globalevent time="12:00" script="on_time.lua" />

<globalevent type="startup" script="custom_on_startup.lua" />
```
