globalvars.absoluteframestarttimestddev
globalvars.interpolation_amount
entitylist.GetHighestEntityIndex
entitylist.GetEntitiesByClassID
Player:IsValidPtr()
Player:IsPlayer()
Player:IsDormant()
Player:IsFlashed()
Player:IsLocalPlayer()
Player:IsTeammate()
Player:IsScoped()
Player:GetIndex()
Player:GetHealth()
Player:GetAbsOrigin()
Player:GetOrigin()
Player:GetMoney()
Player:GetMoveType()
Player:GetEyePos()
Player:GetName()
Player:GetAngles()
Player:GetTeamNum()
Player:GetWeapon()
Player:GetBoundingBox()
Player:GetStaticBox()
Player:GetHitboxPos(int hitbox)
Player:GetSteamID64()
Player:GetDormantAlpha()
Player:GetAbsVelocity()
Player:GetVelocity()
Player:GetSimulationTime()
Player:GetOldSimulationTime()
Player:GetPropBool(int offset)
Player:GetPropInt(int offset)
Player:GetPropFloat(int offset)
Player:GetPropDouble(int offset)
Player:GetPropShort(int offset)
Player:GetPropVector(int offset)
Player:GetPropAngle(int offset)
Player:SetPropInt(int offset, int i)
Player:SetPropShort(int offset, short i)
Player:SetPropAngle(int offset, QAngle ang)
Player:SetPropDouble(int offset, double i)
Player:SetPropBool(int offset, bool i)
Player:SetPropFloat(int offset, float i)
Player:SetPropVector(int offset, Vector i)
Player:GetAnimState()
Player:GetMissedShots()Weapon:IsValidPtr()
Weapon:IsKnife()
Weapon:IsGrenade()
Weapon:IsZeus()
Weapon:IsReloading()
Weapon:GetIndex()
Weapon:GetSpread()
Weapon:GetInaccuracy()
Weapon:GetAbsOrigin()
Weapon:GetOrigin()
Weapon:GetName()
Weapon:GetZoomLevel()
Weapon:GetNextPrimaryAttack()
Weapon:GetNextSecondaryAttack()
Weapon:GetItemDefinitionIndex()
Weapon:GetBoundingBox()
Weapon:GetStaticBox()
Weapon:GetPropBool(int offset)
Weapon:GetPropInt(int offset)
Weapon:GetPropFloat(int offset)
Weapon:GetPropDouble(int offset)
Weapon:GetPropShort(int offset)
Weapon:GetPropVector(int offset)
Weapon:GetPropAngle(int offset)
Weapon:SetPropInt(int offset, int i)
Weapon:SetPropShort(int offset, short i)
Weapon:SetPropAngle(int offset, QAngle ang)
Weapon:SetPropDouble(int offset, double i)
Weapon:SetPropBool(int offset, bool i)
Weapon:SetPropFloat(int offset, float i)
Weapon:SetPropVector(int offset, Vector i)Entity:IsValidPtr()
Entity:GetIndex()
Entity:GetBoundingBox()
Entity:GetStaticBox()
Entity:GetPropBool(int offset)
Entity:GetPropInt(int offset)
Entity:GetPropFloat(int offset)
Entity:GetPropDouble(int offset)
Entity:GetPropShort(int offset)
Entity:GetPropVector(int offset)
Entity:GetPropAngle(int offset)
Entity:SetPropInt(int offset, int i)
Entity:SetPropShort(int offset, short i)
Entity:SetPropAngle(int offset, QAngle ang)
Entity:SetPropDouble(int offset, double i)
Entity:SetPropBool(int offset, bool i)
Entity:SetPropFloat(int offset, float i)
Entity:SetPropVector(int offset, Vector i)Convar:GetBool()
Convar:GetInt()
Convar:GetFloat()
Convar:GetString()
Convar:SetBool(bool v)
Convar:SetInt(int v)
Convar:SetFloat(float v)
Convar:SetString(string v)Event:GetName()
Event:GetBool()
Event:GetInt()
Event:GetFloat()
Event:GetString()UserCmd.command_number
UserCmd.tick_count
UserCmd.viewangles
UserCmd.forwardmove
UserCmd.sidemove
UserCmd.upmove
UserCmd.buttons
UserCmd.random_seed
UserCmd.mousedx
UserCmd.mousedyAnimState.m_flLastClientSideAnimationUpdateTime
AnimState.m_iLastClientSideAnimationUpdateFramecount
AnimState.m_flEyePitch
AnimState.m_flEyeYaw
AnimState.m_flPitch
AnimState.m_flGoalFeetYaw
AnimState.m_flCurrentFeetYaw
AnimState.m_flCurrentTorsoYaw
AnimState.m_flUnknownVelocityLean
AnimState.m_flLeanAmount
AnimState.m_flFeetCycle
AnimState.m_flFeetYawRate
AnimState.m_fDuckAmount
AnimState.m_fLandingDuckAdditiveSomething
AnimState.m_vOrigin
AnimState.m_vLastOrigin
AnimState.m_vVelocityX
AnimState.m_vVelocityY
AnimState.speed_2d
AnimState.flUpVelocity
AnimState.m_flSpeedNormalized
AnimState.m_flFeetSpeedForwardsOrSideWays
AnimState.m_flFeetSpeedUnknownForwardOrSideways
AnimState.m_flTimeSinceStartedMoving
AnimState.m_flTimeSinceStoppedMoving
AnimState.m_bOnGround
AnimState.m_bInHitGroundAnimation
AnimState.m_flLastOriginZ
AnimState.m_flHeadHeightOrOffsetFromHittingGroundAnimation
AnimState.m_flStopToFullRunningFraction
AnimState.m_flUnknownFractionQAngle.pitch
QAngle.yaw
QAngle.roll
QAngle:Length()
QAngle:LengthSqr()
QAngle:IsZero(float tolerance = 0.01f)
QAngle:Normalize()Vector.x
Vector.y
Vector.z
Vector:Length()
Vector:LengthSqr()
Vector:Length2D()
Vector:Length2DSqr()
Vector:IsZero(float tolerance = 0.01f)
Vector:IsValid()
Vector:Zero()
Vector:DistTo(const Vector &vOther)
Vector:DistToSqr(const Vector &vOther)
Vector:Cross(const Vector& vOther)
Vector:Normalize()RECT.left
RECT.top
RECT.right
RECT.bottom-- model1, model2
local function model_changer()
-- replaces model1 to model2
mdl.ReplacePath("knife_default_ct.mdl", "models/weapons/v_minecraft_pickaxe.mdl")
mdl.ReplacePath("knife_default_t.mdl", "models/weapons/v_minecraft_pickaxe.mdl")
end
client.RegisterCallback("find_mdl", model_changer)-- Label, variable name, default value
ui.Checkbox("Label", "b_variable", false)
ui.GetBool("b_variable") -- returns the checkbox state-- Label, variable name, min value, max value, default value
ui.SliderInt("Label", "i_variable", 0, 10, 0)
ui.GetInt("i_variable") -- returns the slider value-- Label, variable name, min value, max value, default value
ui.SliderFloat("Label", "flt_variable", 0.0, 10.0, 0.0)
ui.GetFloat("flt_variable") -- returns the slider value-- Label, variable name
ui.KeyBind("Label", "i_key")
local key = ui.GetInt("i_key") -- returns the key
client.IsKeyPressed(key) -- returns the pressed state-- Label, variable name, strings array, default value
ui.Combo("Label", "i_variable", { "Item1", "Item2", "Item3" }, 0)
ui.GetInt("i_variable") -- returns the combo value-- Label, variable name, default value
ui.InputText("Label", "str_variable", "default")
ui.GetString("str_variable") -- returns the input valuelocal var = ui.GetBool("var") -- returns the added variable statelocal var = ui.GetInt("var") -- returns the added variable valuelocal var = ui.GetFloat("var") -- returns the added variable valuelocal var = ui.GetString("var") -- returns the added variable valueui.SetBool("var", true) -- setting the added variable stateui.SetInt("var", 5) -- setting the added variable valueui.SetFloat("var", 5.0) -- setting the added variable valueui.SetString("var", "hello") -- setting the added variable valuelocal x, y = surface.GetCursorPos() -- returns the cursor position-- fontname, tall, weight, blur, scanlines, flags
local font = surface.SetupFont("Tahoma", 16, 500, 0, 1, 0x200)
-- surface font flags: https://developer.valvesoftware.com/wiki/EFontFlags -- start_pos_x, start_pos_y, end_pos_x, end_pos_y
surface.DrawSetColor(255, 0, 0, 255)
surface.DrawFilledRect(5, 5, 10, 10)-- start_pos_x, start_pos_y, end_pos_x, end_pos_y, first_alpha, next_alpha, is_horisontal
surface.DrawSetColor(255, 0, 0, 255)
surface.DrawFilledRectFade(5, 5, 10, 10, 255, 0, false) -- start_pos_x, start_pos_y, end_pos_x, end_pos_y
surface.DrawSetColor(255, 0, 0, 255)
surface.DrawOutlinedRect(5, 5, 10, 10) -- red, green, blue, alpha
surface.DrawSetColor(255, 0, 0, 255) -- setting color of the next drawing element-- font, text
local w, h = surface.GetTextSize(font, text) -- returns width and height text size-- start_pos_x, start_pos_y, end_pos_x, end_pos_y
surface.DrawSetColor(255, 0, 0, 255)
surface.DrawLine(5, 5, 20, 5) -- drawing horisontal line-- pos_x, pos_y, radius, segments
surface.DrawSetColor(255, 0, 0, 255)
surface.DrawOutlinedCircle(20, 20, 10, 10) -- drawing the circle-- font from setupfont
surface.DrawSetTextFont(font) -- setting the next text font-- red, green, blue, alpha
surface.DrawSetTextColor(255, 0, 0, 255) -- setting the next text color-- x, y
surface.DrawSetTextPos(10, 10) -- setting the next text positionsurface.DrawPrintText("Testing") -- drawing the textlocal name = engine.GetLevelNameShort() -- returns the current map name-- userID
local index = engine.GetPlayerIndexByUserID(userID) -- returns the entity index-- userID
local index = engine.GetPlayerIndexByUserID(userID) -- returns the entity indexlocal index = engine.GetLocalPlayer() -- returns the localplayer indexlocal w, h = engine.GetScreenSize() -- returns the screen sizelocal view = engine.GetViewAngles() -- returns the camera angles-- viewangle
engine.SetViewAngles(viewangle) -- setting the camera angleslocal connected = engine.IsConnected() -- returns the connected statelocal isInGame = engine.IsInGame() -- returns the IsInGame state-- string
engine.ExecuteClientCmd("echo test") -- printing "test" in consoleclientstate.ForceFullUpdate() -- calling cl_fullupdatelocal choked = clientstate.chokedcommands() -- returns the choked commandslocal realtime = globalvars.realtime() -- returns the client timelocal framecount = globalvars.framecount() -- returns the frame countlocal absoluteframetime = globalvars.absoluteframetime() -- returns the absolute frame timelocal absoluteframestarttimestddev = globalvars.absoluteframestarttimestddev() -- returns the absolute frame start timelocal curtime = globalvars.curtime() -- returns the server timelocal frametime = globalvars.frametime() -- returns the frame timelocal maxClients = globalvars.maxClients() -- returns the max clients valuelocal tickcount = globalvars.tickcount() -- returns the current tickcountlocal interval_per_tick = globalvars.interval_per_tick() -- returns the interval per ticklocal interpolation_amount = globalvars.interpolation_amount() -- returns the interpolation amountlocal isvalveds = client.IsValveDS() -- returns the is a valve server or not-- key code: https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes
local isPressed = client.IsKeyPressed(key) -- returns the pressed state-- pos, player
local isEntityVisible = client.IsVisible(pos, player) -- returns the visible statelocal timestamp = client.GetTimeStamp() -- returns the unix timestamplocal hours, minutes, seconds = client.GetSystemTime() -- returns the windows time-- viewAngle, aimAngle
local fov = client.GetFOV(viewAngle, aimAngle) -- returns the fov from viewangle to aimAnglelocal latency = client.GetLatency() -- returns the current latencylocal name = client.GetUsername() -- returns your cheat username-- cvar name
local cvar = client.GetConvar("cl_interp") -- returns the ConVar object-- table, netvar
local offset = client.GetNetvar("DT_BasePlayer", "m_iHealth") -- returns the m_iHealth offset
player:GetPropInt(offset) -- returns the player healthlocal send = client.GetSendPacket() -- returns the current packet stageclient.SetSendPacket(true) -- setting the sendpacket stage-- clantag
client.SetClantag("test") -- setting the ingame clantag-- name
client.SetName("test") -- setting the ingame name-- callback_name, function
function on_paint()
surface.DrawSetColor(255, 0, 0, 255)
surface.DrawFilledRect(5, 5, 10, 10)
end
client.RegisterCallback("paint_traverse", on_paint)-- message
client.Notification("Hello, world!") -- pushing the notification-- text, radiourl
client.AddToRadioList(text, radiourl) -- adding your channel to radio list-- min, max
local random = client.RandomInt(0, 10) -- returns the random number-- min, max
local random = client.RandomFloat(0.0, 10.0) -- returns the random number-- script name
client.LoadScript("clantag.lua") -- loading the script-- script name
client.UnloadScript("clantag.lua") -- unloading the script-- cfg name
client.LoadConfig("default.nixware") -- loading the config-- 3d_pos
local pos_2d = client.WorldToScreen(pos_3d) -- returns the screen position by world position-- src, dst
local angle = client.CalcAngle(eye_position, target_position) -- returns the angle by pos-- modulename, pattern, offset
local addr = client.FindIDAPattern("client_panorama.dll", "8B 35 ? ? ? ? 66 3B D0 74 07", 2) -- returns the address by IDA pattern-- modulename, pattern, mask, offset
local addr = client.FindCodePattern("engine.dll", "\x8D\x4C\x24\x1C\xE8\x00\x00\x00\x00\x56", "xxxxx????x", 0) -- returns the address by code pattern-- index
local player = entitylist.GetPlayerByIndex(index) -- returns the Player object-- index
local weapon = entitylist.GetWeaponByIndex(index) -- returns the Weapon object-- index
local entity = entitylist.GetEntityByIndex(index) -- returns the Entity objectlocal idx = entitylist.GetHighestEntityIndex() -- returns the highest entity index-- type
-- 0 - enemies only
-- 1 - teammates only
-- 2 - all players
local players = entitylist.GetPlayers(type) -- returns the players array
for i = 1, #players do
local player = players[i]
endlocal localplayer = entitylist.GetLocalPlayer() -- returns the local player object-- classname
local entities = entitylist.GetEntitiesByClass(classname) -- returns the entities array
for i = 1, #entities do
local entity = entities[i]
end-- classid
local entities = entitylist.GetEntitiesByClass(classid) -- returns the entities array
for i = 1, #entities do
local entity = entities[i]
end-- seconds, forceExact
netchannel.SetTimeout(seconds, forceExact)-- filename, isReplayDemo
netchannel.RequestFile(filename, isReplayDemo)create_movement(UserCmd)
fire_game_event(Event)
frame_stage_notify(Stage)
player_resolver(Player)
paint_traverse()
find_mdl()