Functions
| Function | Returns | Description |
|---|---|---|
client.name() | string | Script filename |
client.insecure() | bool | Whether insecure mode is enabled |
client.delay(seconds, fn) | Execute fn after a delay | |
client.unload() | Request script unload | |
client.reload() | Request script reload | |
client.notify(text [, title]) | Show a notification popup | |
client.owner() | table | Script owner info |
Owner table
| Field | Type | Description |
|---|---|---|
name | string | Owner name |
uid | number | Owner UID |
mine | bool | Whether the current user is the owner |
since | number | Ownership timestamp |
loaded_by | string | Name of the user who loaded the script |
loaded_uid | number | UID of the user who loaded the script |
Example
client.delay(5, function()
client.notify('Script loaded', client.name())
end)