Functions
log
log(msg)
- msg
string
- The message to display in the log.
log_value
log_value(value)
- value
any
- The value to display in the log.
warn
warn(msg)
- msg
string
- The message to display as a warning in the log.
panic
panic(msg)
This results in a lua panic.
- msg
string
- The message to display in the error.
sleep
sleep(ms)
- ms
int
- The number of milliseconds to sleep.
fmt
fmt(str, values...) -> string
- str
string
- values
any...
string
config
config() -> table<any>
table<any>
secrets
secrets() -> table<any>
table<any>
map_schema
map_schema(value, schema) -> table<any>
- value
table<any>
- schema
table<any>
table<any>
call_thread
call_thread(func)
This function will call the provided function in a new thread, unlike tasks there is no control over the thread. There is also no guarantee that the thread will finish before the script ends.
- func
function()
- The function to call in a new thread.
array_fill
array_fill(size, value) -> []any
- size
int
- value
any
[]any
- Note that some values are copied by reference.