utility
Interact with cheat functions.
Functions:
Print/Log
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.
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 sound file content can be obtained from either a web request, or by using the file system to read the contents and passing it.
Load Font
utility.load_font(string: font_file_name, float: font_size, boolean: custom_font, boolean: anti_aliasing_disabled)The font name should end in .ttf extension. The font size is clamped at 128. If custom font is disabled by default it searches for the font in C:\Windows\Fonts otherwise it searches in the files directory. Anti aliasing is enabled on each loaded font by default, unless true is explicitly passed to the anti_aliasing_disabled argument. This function should be called once per font as it will return a font id. This can then be passed into any functions that support a font id.
Last updated