Miscellaneous

The miscellaneous functions are a temporary collection of functions that are not yet categorized.


identifyexecutor

function identifyexecutor(): (string, string)

Returns the name and version of the current executor.

Aliases

  • getexecutorname


lz4compress

function lz4compress(data: string): string

Compresses data using LZ4 compression.

Parameters

  • data - The uncompressed data.

Example

local text = "Hello, world! Hello, world! Goodbye, world!"
print(#text) --> 43
print(#lz4compress(text)) --> 34

lz4decompress

Decompresses data using LZ4 compression, with the decompressed size specified by size.

Parameters

  • data - The compressed data.

  • size - The size of the decompressed data.

Example


messagebox

⏰ Yields

Creates a message box with the specified text, caption, and flags. Yields until the message box is closed, and returns the user input code.

Documentation regarding the flags and return codes can be found here.

Parameters

  • text - The text to display in the message box.

  • caption - The caption of the message box.

  • flags - The flags to use.

Example

Prompts the user with a message box with three options and a warning icon:


queue_on_teleport

Queues the specified script to be executed after the player teleports to a different place.

Parameters

  • code - The script to execute.

Aliases

  • queueonteleport - Will supercede this function in the future.

Example


request

⏰ Yields

Sends an HTTP request using the specified options. Yields until the request is complete, and returns the response.

Request

Field
Type
Description

Url

string

The URL for the request.

Method

string

The HTTP method to use. Can be GET, POST, PATCH, or PUT.

Body

string?

The body of the request.

Headers

table?

A table of headers.

Cookies

table?

A table of cookies.

Response

Field
Type
Description

Body

string

The body of the response.

StatusCode

number

The number status code of the response.

StatusMessage

string

The status message of the response.

Success

boolean

Whether or not the request was successful.

Headers

table

A dictionary of headers.

Headers

The executor provides the following headers for identification on a web server:

Header
Description

PREFIX-User-Identifier

A string unique to each user, and does not change if the script executor is used across computers.

PREFIX-Fingerprint

The hardware identifier of the user.

User-Agent

The name and version of the executor.

Parameters

  • options - The options to use.

Aliases

  • http.request

  • http_request

Example


setclipboard

Copies text to the clipboard.

Parameters

  • text - The text to copy.

Aliases

  • toclipboard

Example


setfpscap

Sets the in-game FPS cap to fps. If fps is 0, the FPS cap is disabled.

Parameters

  • fps - The FPS cap.

Example

Last updated