Miscellaneous

identifyexecutor

<string, string> identifyexecutor()

Returns the name and version of Potassium.


lz4compress

<string> lz4compress(<string> data)

Compresses data using LZ4 compression.


lz4decompress

<string> lz4compress(<string> data, <number> size)

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


messagebox

<number> messagebox(<string> text, <string> caption, <number> flags)

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



queue_on_teleport

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


request

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

Field
Type
Description

Url

string

The URL for the request.

Method

string

The HTTP method to use.

Body

string?

The body of the request.

Headers

table?

A table of headers.

Cookies

table?

A table of cookies.


getinternalparent

Returns the internal parent field of the instance.


getfflag

Returns the value of fflag


setfflag

Sets the value of fflag to value


setinternalparent

Sets the internal parent field of instance to newparent


setclipboard

Copies text to the clipboard.


setfpscap

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


Last updated