Cheat
Fields
This class has no fields.
Functions
RegisterCallback
Name | Type | Description |
---|---|---|
event_name | string | Event name |
callback | function | Lua function to call when this event occurs |
Cheat.RegisterCallback('draw', function()
Render.Line(Vector2.new(100.0, 100.0), Vector2.new(200.0, 100.0), Color.new(1.0, 1.0, 1.0, 1.0))
end)
UnregisterCallback
Removes a callback that was previously set using RegisterCallback
Name | Type | Description |
---|---|---|
event_name | string | Event name |
Menu.Button('my button', function()
Cheat.UnregisterCallback('draw')
end)
Cheat.RegisterCallback('draw', function()
Render.Line(Vector2.new(100.0, 100.0), Vector2.new(200.0, 100.0), Color.new(1.0, 1.0, 1.0, 1.0))
end)
GetCheatUserName
This function has no parameters.
Return value
Name | Type | Description |
---|---|---|
login | string | Account login |
print(Cheat.GetCheatUserName())