βοΈUtilities
utils namespace
Random values
random_int
utils.random_int(0, 100)Returns:
random_float
utils.random_float(0, 100)Returns:
Memory
find_interface
module_name
string
name of module
interface_name
string
name of interface followed by its version number
Returns:
find_pattern
module_name
string
name of module
Returns:
flags
...
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:
timer object
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
function_to_call
function
callback with response
http_post
url
string
url to send the request to
body
string
post body
function_to_call
function
callback with response
Json
json_decode
json_data
string
string of json data
Returns:
json_encode
lua_table
table
a lua table to be encoded into json
Returns:
Trace ray
trace
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
Returns:
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:
Console
print_console
print_dev_console
text
string
text to print
error_print
text
string
text to print
Encryption
aes256_encrypt
Returns:
aes256_decrypt
Returns:
base64_encode
data
string
data to encode
Returns:
base64_decode
encoded data
string
data from base64_encode
Returns:
Miscellaneous
load_file
path
string
path to file
Returns:
Note:
Path starts at csgo.exe's file location.
get_weapon_info
Returns:
table with the weapons info
get_rtt
Returns:
world_to_screen
x
number
3D x world position
y
number
3D y world position
z
number
3D z world position
Returns:
Usage:
Converts world coordinates to screen coordinates.
set_clan_tag
new_tag
string
string to set clantag to
get_time
Returns:
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