environment¶
Info
This page describes only overridden and custom functions.
Other functions of the standard Lua environment haven't been changed in any aspect
register_callback¶
register_callback(name: string, func: function)
Name | Type | Description |
---|---|---|
name | string |
Event name. Look here for event list |
func | function |
Callback function |
find_pattern¶
find_pattern(module: string, pattern: string, offset?: number):
userdata
Name | Type | Description |
---|---|---|
module | string |
Module name to search the pattern in |
pattern | string |
IDA style pattern to search for. Wildcard - ? |
offset | number |
Optional. Offset in bytes which will be added to the pointer |
Warning
If pattern is not found, return value will be nil
get_user_name¶
get_user_name():
string
Returns the name of the cheat user
print¶
print(text: string, color?: color_t)
Name | Type | Description |
---|---|---|
text | string |
Text to print |
color | color_t |
Optional. Text color |
Info
You can put \0
in the end of the text to prevent newline