utility

Interact with cheat functions.

Functions:

utility.log(string: message)

Random Int

utility.random_int(int: min, int: max)

Returns a random number between the minimum and maximum as a integer.

Random Float

utility.random_float(float: min, float: max)

Returns a random number between the minimum and maximum as a float.

World To Screen

utility.world_to_screen(int: x, int: y, int: z)

Converts world coordinates to screen cordinates.

Key State

utility.key_state(key: key)

Returns the state of that key.

Delta Time

utility.get_delta_time()

Returns the time elapsed since the last frame was rendered.

Tick Count

utility.get_tickcount()

Returns the number of milliseconds that have elapsed since the system was started.

Get Fingerprint

utility.get_fingerprint()

Returns a unique fingerprint of the users computer, this can be used to uniquely identify someone's computer.

Get Clipboard

utility.get_clipboard()

Returns the current contents of the users clipboard.

Set Clipboard

utility.set_clipboard(string: content)

Set's the users clipboard to whatever content you specify.

Load Image

utility.load_image(string: image_file_content)

The image file content can be obtained from either a web request, or by using the file system to read the contents and passing it. This function should be called once per image as it will return a texture id. This can then be passed into any functions that support a texture id.

Play Sound

utility.play_sound(string: sound_file_content)

The image file content can be obtained from either a web request, or by using the file system to read the contents and passing it.

Calculate Bounding Box

utility.calculate_bbox(int: x, int: y, int: z, int: x2, int: y2, int: z2, int x3, int y3, int z3);

Calculates and returns the bounding box as x, y, w, h which are screen coordinates. The first three coordinates should be the origin, the second three coordinates should be the minimum, and the last three coordinates should be the maximum.

Last updated