Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Lua API Reference for CS:GO Cheat V4
- Callbacks:
- Draw
- Called every frame for drawing
- DrawESP( builder )
- Called for every ESP entity with ESP builder as argument
- CreateMove( cmd )
- Called every input update, allows to modify viewangles, sendpacket, etc.
- FireGameEvent( event )
- Called for selected game events
- Global functions:
- print( msg )
- Prints message to gui console
- RunScript( scriptFile )
- Library functions:
- entities.FindByClass( className )
- Find and put into table all entities with given class name
- entities.GetLocalPlayer()
- entities.GetByIndex( index )
- entities.GetByUserID( userID )
- entities.GetPlayerResources()
- client.WorldToScreen( x, y, z )
- Translate world position into screen position (x,y)
- client.Command( cmd, unrestrict )
- client.ChatSay( msg )
- client.ChatTeamSay( msg )
- client.AllowListener( eventName )
- Request sending given game event from server
- client.GetPlayerNameByIndex( index )
- client.GetPlayerNameByUserID( userID )
- client.GetLocalPlayerIndex()
- client.SetConVar( name, value, unrestrict )
- client.GetConVar( name )
- globals.TickInterval()
- globals.TickCount()
- globals.RealTime()
- globals.CurTime()
- globals.FrameCount()
- globals.FrameTime()
- globals.AbsoluteFrameTime()
- globals.MaxClients()
- Max player count
- callbacks.Register( id, uniqueName, function )
- Register new callback
- callbacks.Unregister( id, uniqueName )
- Unregister callback
- draw.Color( r, g, b, a )
- draw.Line( x1, y1, x2, y2 )
- draw.FilledRect( x1, y1, x2, y2 )
- draw.OutlinedRect( x1, y1, x2, y2 )
- draw.RoundedRect( x1, y1, x2, y2 )
- draw.RoundedRectFill( x1, y1, x2, y2 )
- draw.GetTextSize( string ) (w,h)
- draw.Text( x, y, string )
- draw.TextShadow( x, y, string )
- draw.GetScreenSize() (w,h)
- draw.CreateFont( name, height, weight )
- draw.SetFont( font )
- common.Time()
- Time since cheat was loaded (in seconds, high precision)
- gui.GetValue( varName )
- gui.SetValue( varName, value )
- input.GetMousePos() (x,y)
- input.IsButtonDown( button )
- input.IsButtonPressed( button )
- input.IsButtonReleased( button )
- engine.TraceLine( x1, y1, z1, x2, y2, z2, mask )
- Traces line from point a to point b, returns contents
- Can be used for visibility checks
- Class functions:
- Entity:GetName()
- Entity:GetClass()
- Entity:GetIndex()
- Entity:GetTeamNumber()
- Entity:GetAbsOrigin()
- Entity:GetMins()
- Entity:GetMaxs()
- Entity:GetHealth()
- Entity:GetMaxHealth()
- Entity:IsPlayer()
- Entity:IsAlive()
- Entity:GetProp( propName )
- Entity:SetProp( propName, value )
- Entity:GetPropFloat( ... )
- Entity:GetPropInt( ... )
- Entity:GetPropBool( ... )
- Entity:GetPropString( ... )
- Entity:GetPropVector( ... )
- Entity:GetPropEntity( ... )
- Entity:GetHitboxPosition( hitgroup )
- Entity:GetBonePosition( boneIndex )
- EspBuilder:Color( r, g, b, a )
- EspBuilder:GetEntity()
- EspBuilder:GetRect()
- EspBuilder:AddTextTop( text )
- EspBuilder:AddTextBottom( text )
- EspBuilder:AddBarTop( percentage )
- EspBuilder:AddBarBottom( percentage )
- EspBuilder:AddBarLeft( percentage )
- EspBuilder:AddBarRight( percentage )
- UserCmd:SetViewAngles( x, y, z )
- UserCmd:GetViewAngles() (x,y,z)
- UserCmd:SetSendPacket( sendpacket )
- UserCmd:GetSendPacket()
- UserCmd:SetButtons( buttons )
- UserCmd:GetButtons()
- UserCmd:SetForwardMove( float factor )
- UserCmd:GetForwardMove()
- UserCmd:SetSideMove( float factor )
- UserCmd:GetSideMove()
- UserCmd:SetUpMove( float factor )
- UserCmd:GetUpMove()
- GameEvent:GetName()
- GameEvent:GetString( fieldName )
- GameEvent:GetInt( fieldName )
- GameEvent:GetFloat( fieldName )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement