βš™οΈUtilities

utils namespace

Random values

random_int

utils.random_int(0, 100)

min

number

minimum number to generate

max

number

maximum number to generate

Returns:

random number

number

random_float

utils.random_float(0, 100)

min

number

minimum number to generate

max

number

maximum number to generate

Returns:

random number

number

Memory

find_interface

module_name

string

name of module

interface_name

string

name of interface followed by its version number

Returns:

interface address or nil on failure

number - nil

find_pattern

module_name

string

name of module

pattern

string

IDA style pattern. ? indicates wildcard

Returns:

pattern address or nil on failure

number - nil

flags

flag

number

flags to combine with the bitwise OR operator

...

number

any other flags

Timers

new_timer

rate

number

the rate in which the function will be called (in milliseconds)

function_to_call

function

function to be called

Returns:

run_delayed

delay

number

the delay to wait before calling the function (in milliseconds)

function_to_call

function

function to be called

HTTP

http_get

url

string

url to send the request to

headers

string

function_to_call

function

callback with response

http_post

url

string

url to send the request to

headers

string

body

string

post body

function_to_call

function

callback with response

Json

json_decode

json_data

string

string of json data

Returns:

json data as lua table

table

json_encode

lua_table

table

a lua table to be encoded into json

Returns:

lua table as a json string

string

Trace ray

trace

from

starting point

to

ending point

skip_index

number

index to skip or -1 for all players

Returns

trace_bullet

item_definition_index

number

weapon's item definition index to use for tracing

from

starting point

to

ending point

Returns:

damage

number

trace info

scale_damage

damage

number

damage to scale

item_definition_index

number

weapon's item definition index to use for calculating damage

hit_group

number

hit group to scale with

armor

number

their armor level

heavy_armor

boolean

do they have heavy armor

helmet

boolean

do they have a helmet

Returns:

damage

number

Console

text

string

text to print

❌

color

color

white

text

string

text to print

error_print

text

string

text to print

Encryption

aes256_encrypt

key

string

key to also used for decryption

data

string

string to encrypt

Returns:

encrypted data

string

aes256_decrypt

key

string

key to also used for encryption

data

string

encrypted string

Returns:

data

string

base64_encode

data

string

data to encode

Returns:

encoded data

string

base64_decode

encoded data

string

data from base64_encode

Returns:

data

string

Miscellaneous

load_file

path

string

path to file

Returns:

file_contents

binary string

Note:

Path starts at csgo.exe's file location.

get_weapon_info

item_definition_index

number

Returns:

table with the weapons info

get_rtt

Returns:

round trip time to server

number

world_to_screen

x

number

3D x world position

y

number

3D y world position

z

number

3D z world position

Returns:

x screen pos or nil on failure

number - nil

y screen pos or nil on failure

number - nil

Usage:

Converts world coordinates to screen coordinates.

set_clan_tag

new_tag

string

string to set clantag to

get_time

Returns:

time information

table

Table structure:

year

number

current year

month

number

month (1 - 12)

year_day

number

day (1 - 366)

month_day

number

day (1 - 31)

week_day

number

day (1 - 7)

hour

number

hour (1 - 23)

min

number

minute (1 - 59)

sec

number

second (0 - 60) including leap second

get_unix_time

Returns:

Last updated