Skip to content

client table

Functions

load_script(scriptname)

Type Name Description
string scriptname Script name

Load the script

1
client.load_script("example.lua")

unload_script(scriptname)

Type Name Description
string scriptname Script name

Unload the script

1
client.unload_script("example.lua")

get_script_name(): string

Returns current script name

1
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

1
2
3
4
5
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

1
local username = client.get_username()

notify(text)

Type Name Description
string text Notification text

Pushing notification

1
client.notify("Hello world!")

get_time_stamp(): number

Returns the unix timestamp

1
local timestamp = client.get_time_stamp()

get_system_time(): number, number, number

Returns the windows time

1
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

1
local line_goes_through_smoke_addr = client.find_pattern("client.dll", "55 8B EC 83 EC 08 8B 15 ? ? ? ? 0F 57 C0")