daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Sep 25th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Lua API Reference for CS:GO Cheat V4
  2.  
  3. Callbacks:
  4. Draw
  5. Called every frame for drawing
  6.  
  7. DrawESP( builder )
  8. Called for every ESP entity with ESP builder as argument
  9.  
  10. CreateMove( cmd )
  11. Called every input update, allows to modify viewangles, sendpacket, etc.
  12.  
  13. FireGameEvent( event )
  14. Called for selected game events
  15.  
  16.  
  17. Global functions:
  18. print( msg )
  19. Prints message to gui console
  20.  
  21. RunScript( scriptFile )
  22.  
  23.  
  24. Library functions:
  25. entities.FindByClass( className )
  26. Find and put into table all entities with given class name
  27.  
  28. entities.GetLocalPlayer()
  29.  
  30. entities.GetByIndex( index )
  31.  
  32. entities.GetByUserID( userID )
  33.  
  34. entities.GetPlayerResources()
  35.  
  36. client.WorldToScreen( x, y, z )
  37. Translate world position into screen position (x,y)
  38.  
  39. client.Command( cmd, unrestrict )
  40.  
  41. client.ChatSay( msg )
  42.  
  43. client.ChatTeamSay( msg )
  44.  
  45. client.AllowListener( eventName )
  46. Request sending given game event from server
  47.  
  48. client.GetPlayerNameByIndex( index )
  49.  
  50. client.GetPlayerNameByUserID( userID )
  51.  
  52. client.GetLocalPlayerIndex()
  53.  
  54. client.SetConVar( name, value, unrestrict )
  55.  
  56. client.GetConVar( name )
  57.  
  58. globals.TickInterval()
  59.  
  60. globals.TickCount()
  61.  
  62. globals.RealTime()
  63.  
  64. globals.CurTime()
  65.  
  66. globals.FrameCount()
  67.  
  68. globals.FrameTime()
  69.  
  70. globals.AbsoluteFrameTime()
  71.  
  72. globals.MaxClients()
  73. Max player count
  74.  
  75. callbacks.Register( id, uniqueName, function )
  76. Register new callback
  77.  
  78. callbacks.Unregister( id, uniqueName )
  79. Unregister callback
  80.  
  81. draw.Color( r, g, b, a )
  82.  
  83. draw.Line( x1, y1, x2, y2 )
  84.  
  85. draw.FilledRect( x1, y1, x2, y2 )
  86.  
  87. draw.OutlinedRect( x1, y1, x2, y2 )
  88.  
  89. draw.RoundedRect( x1, y1, x2, y2 )
  90.  
  91. draw.RoundedRectFill( x1, y1, x2, y2 )
  92.  
  93. draw.GetTextSize( string ) (w,h)
  94.  
  95. draw.Text( x, y, string )
  96.  
  97. draw.TextShadow( x, y, string )
  98.  
  99. draw.GetScreenSize() (w,h)
  100.  
  101. draw.CreateFont( name, height, weight )
  102.  
  103. draw.SetFont( font )
  104.  
  105. common.Time()
  106. Time since cheat was loaded (in seconds, high precision)
  107.  
  108. gui.GetValue( varName )
  109.  
  110. gui.SetValue( varName, value )
  111.  
  112. input.GetMousePos() (x,y)
  113.  
  114. input.IsButtonDown( button )
  115.  
  116. input.IsButtonPressed( button )
  117.  
  118. input.IsButtonReleased( button )
  119.  
  120. engine.TraceLine( x1, y1, z1, x2, y2, z2, mask )
  121. Traces line from point a to point b, returns contents
  122. Can be used for visibility checks
  123.  
  124. Class functions:
  125. Entity:GetName()
  126.  
  127. Entity:GetClass()
  128.  
  129. Entity:GetIndex()
  130.  
  131. Entity:GetTeamNumber()
  132.  
  133. Entity:GetAbsOrigin()
  134.  
  135. Entity:GetMins()
  136.  
  137. Entity:GetMaxs()
  138.  
  139. Entity:GetHealth()
  140.  
  141. Entity:GetMaxHealth()
  142.  
  143. Entity:IsPlayer()
  144.  
  145. Entity:IsAlive()
  146.  
  147. Entity:GetProp( propName )
  148.  
  149. Entity:SetProp( propName, value )
  150.  
  151. Entity:GetPropFloat( ... )
  152.  
  153. Entity:GetPropInt( ... )
  154.  
  155. Entity:GetPropBool( ... )
  156.  
  157. Entity:GetPropString( ... )
  158.  
  159. Entity:GetPropVector( ... )
  160.  
  161. Entity:GetPropEntity( ... )
  162.  
  163. Entity:GetHitboxPosition( hitgroup )
  164.  
  165. Entity:GetBonePosition( boneIndex )
  166.  
  167. EspBuilder:Color( r, g, b, a )
  168.  
  169. EspBuilder:GetEntity()
  170.  
  171. EspBuilder:GetRect()
  172.  
  173. EspBuilder:AddTextTop( text )
  174.  
  175. EspBuilder:AddTextBottom( text )
  176.  
  177. EspBuilder:AddBarTop( percentage )
  178.  
  179. EspBuilder:AddBarBottom( percentage )
  180.  
  181. EspBuilder:AddBarLeft( percentage )
  182.  
  183. EspBuilder:AddBarRight( percentage )
  184.  
  185. UserCmd:SetViewAngles( x, y, z )
  186.  
  187. UserCmd:GetViewAngles() (x,y,z)
  188.  
  189. UserCmd:SetSendPacket( sendpacket )
  190.  
  191. UserCmd:GetSendPacket()
  192.  
  193. UserCmd:SetButtons( buttons )
  194.  
  195. UserCmd:GetButtons()
  196.  
  197. UserCmd:SetForwardMove( float factor )
  198.  
  199. UserCmd:GetForwardMove()
  200.  
  201. UserCmd:SetSideMove( float factor )
  202.  
  203. UserCmd:GetSideMove()
  204.  
  205. UserCmd:SetUpMove( float factor )
  206.  
  207. UserCmd:GetUpMove()
  208.  
  209. GameEvent:GetName()
  210.  
  211. GameEvent:GetString( fieldName )
  212.  
  213. GameEvent:GetInt( fieldName )
  214.  
  215. GameEvent:GetFloat( fieldName )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top