client
General cheat-related functions
🚧 API of this file is not finished yet and could be changed in any time
Functions
RegisterCallback
List:
Name
Arguments
Description
Paint
-
primitives drawing
FrameStageNotify
nStage
called on every frame stage
Destroy
-
called on current script unload
Parameters:
Name
Type
Description
szCallbackName
string
name of callback where function will be called
pFunction
function
function to be called within callback
Code:
local flRainbow = 0.001
Client.RegisterCallback("Paint", function()
if (flRainbow >= 1.0) then
flRainbow = 0.0 -- clamp
else
flRainbow = flRainbow + 0.001
end
local colRainbow = Color.FromHSB(flRainbow, 1.0, 1.0, 1.0)
Draw.AddCircle(Vector2D.new(150.0, 150.0), 50.0, colRainbow, 12, bit.bor(ECircleRenderFlags.DRAW_CIRCLE_FILLED, ECircleRenderFlags.DRAW_CIRCLE_OUTLINE))
end)RegisterEventCallback
List: CS:GO Game Events
Arguments: IGameEvent*
Parameters:
Name
Type
Description
szEventName
string
name of event where on trigger function will be called
pFunction
function
function to be called on event trigger
Code:
LoadScript
Parameters:
Name
Type
Description
szScriptName
string
name of script to load
Code:
UnloadScript
Parameters:
Name
Type
Description
szScriptName
string
name of script to unload
Code:
FindPattern
Parameters:
Name
Type
Description
szModule
string
name of module to search signature in
szSignature
string
IDA style signature to search
Returns:
Type
Description
unsigned int
address of given pattern
Code:
CaptureInterface
Parameters:
Name
Type
Description
szModule
string
name of module where interface defined
szInterface
string
name of interface to capture
Returns:
Type
Description
void*
pointer of captured interface
Code:
GetCheatUserName
Returns:
Type
Description
string
cheat username
Code:
Last updated
Was this helpful?