cmd.set_forwardmove(n)
cmd.set_moveyaw(n)
cmd.set_sidemove(n)

notify.add(text)

client.set_event_callback(func,luafuncname)
client.is_keypressed(n)
client.realtime()
client.absframetime()
client.exec(text)
client.tickinterval()
client.tickcount()
client.curtime()
client.is_ingame()
client.get_localplayer()
client.get_mapname()
client.get_screensize() returns screen, height
client.get_viewangles() returns pitch yaw roll, can be used anywhere unlike cmd.get_viewangles()

cmath.angle_vector(x,y,z) returns 3 values
cmath.calc_angles(x, y, z, x1, y1, z1) src and endpos
cmath.getfov(x,y,z,x1,y1,z1) viewangles and dst viewangles

entity.is_enemy(n)
entity.is_alive(n)
entity.get_money(n)
entity.get_name(n)
entity.get_classname(n)
entity.get_prop(n, type, table, propname)
entity.get_entities(classname) -- returns table of entities entindex starts from 1

type - type of datatype (1-int,2-vector/angle,3-bool,4-handle entity)

entity.get_userid(n)
entity.get_highestentities()
entity.get_maxclients()

weapon.get_spread(entindex)
weapon.get_ammo(entindex)
weapon.get_itemid(entindex)
weapon.get_cone(entindex)
weapon.get_damage(entindex)
weapon.get_maxspeed(entindex)

renderer.draw_rect(x, y, w, h, r, g, b, a)
renderer.worldtoscreen(x, y, z) returns 3 values if success
renderer.draw_box(x, y, w, h, r, g, b, a)
renderer.draw_line(x, y, x1, y1, thickness, r, g, b, a)
renderer.draw_text(x, y, r, g, b, a, ce ntered, text)

menu.add_keybinder(control_name, category_name, default value, existing category number -- set 0 for new)
menu.add_checkbox(control_name, category_name, default value, existing category number -- set 0 for new)
menu.add_slider(control_name, category_name, default value, min, max, existing category number -- set 0 for new)
menu.add_category(name)

all returns category/control id which can be used to set/get controls

menu.get_value(control_id)
menu.set_value(control_id, value)
menu.get_control(category_name, control_name)

Last updated: 13 september 2019

______________________________________________________________________________________________

example usages

getting entities:

local chickens = entity.get_entities("CChicken")

if chickens == nil then
return
end

for i=1, #chickens do
local p_x, p_y, p_z = entity.get_prop(chickens[i], 2, "DT_BasePlayer","m_vecOrigin")
local s_x, s_y = renderer.worldtoscreen(p_x, p_y, p_z)

renderer.draw_text(s_x, s_y, 255, 255, 255, 255, true, "chicken")
end

______________________________________________________________________________________________

adding callback:

function on_paint()
if client.is_ingame() ~= true then
return
end

end

client.set_event_callback("on_paint","on_paint")

______________________________________________________________________________________________

if you have any questions, you can either ask in discord or take a look at the luas provided.