Utils
Fields
This class has no fields.
Functions
CreateInterface
Name |
Type |
Description |
module_name |
string |
Module name |
interface_name |
string |
Interface name |
Return value
Name |
Type |
Description |
value |
void* |
Interface pointer |
local game_movement = Utils.CreateInterface("client.dll", "GameMovement001")
PatternScan
Name |
Type |
Description |
module_name |
string |
Module name |
pattern |
string |
IDA-like pattern |
offset |
number |
Offset |
relative |
boolean |
Is address relative |
Return value
Name |
Type |
Description |
value |
void* |
Address pointer |
local clantag_change_fn = Utils.PatternScan("engine.dll", "53 56 57 8B DA 8B F9 FF 15")
RandomSeed
Name |
Type |
Description |
seed |
int |
Seed value |
Utils.RandomSeed(cmd.random_seed)
RandomInt
Name |
Type |
Description |
min |
int |
Min value |
max |
int |
Max value |
Return value
Name |
Type |
Description |
value |
int |
Random int from min to max |
local rnd_int = Utils.RandomInt(0, 20)
RandomFloat
Name |
Type |
Description |
min |
float |
Min value |
max |
float |
Max value |
Return value
Name |
Type |
Description |
value |
float |
Random float from min to max |
local rnd_float = Utils.RandomFloat(0.5, 2.5)