client table
Functions
load_script(scriptname)
Type |
Name |
Description |
string |
scriptname |
Script name |
Load the script
| client.load_script("example.lua")
|
unload_script(scriptname)
Type |
Name |
Description |
string |
scriptname |
Script name |
Unload the script
| client.unload_script("example.lua")
|
get_script_name(): string
Returns current script name
| local current_script_name = client.get_script_name()
|
register_callback(eventname, fn)
Type |
Name |
Description |
string |
eventname |
Callback name |
function |
fn |
Lua function() |
Register the callback
| local function on_create_move(cmd)
print(cmd.command_number)
end
client.register_callback("create_move", on_create_move)
|
get_username(): string
Returns your cheat username
| local username = client.get_username()
|
notify(text)
Type |
Name |
Description |
string |
text |
Notification text |
Pushing notification
| client.notify("Hello world!")
|
get_time_stamp(): number
Returns the unix timestamp
| local timestamp = client.get_time_stamp()
|
get_system_time(): number, number, number
Returns the windows time
| local hours, minutes, seconds = client.get_system_time()
|
find_pattern(module, pattern): number
Type |
Name |
Description |
string |
module |
Module |
string |
pattern |
Pattern |
Returns pattern address
| local line_goes_through_smoke_addr = client.find_pattern("client.dll", "55 8B EC 83 EC 08 8B 15 ? ? ? ? 0F 57 C0")
|