Entity.GetName():
string
Returns entity name.
string// TODO
numberReturns the index of the entity (only for players).
numberReturns the team number.
| Teamnumber | Name |
|---|---|
| 1 | Spectator |
| 2 | Counter-Terrorists |
| 3 | Terrorists |
Vector3Returns origin position of the entity.
// TODO
// TODO
numberReturns how much health the entity has.
numberReturns the maximum health of the entity.
booleanReturns if the entity is a player.
booleanReturns if the entity is alive.
string)Returns the value of the prop.
string, value)Sets the value of the prop.
string): numberInterprets the value at the path as a float and returns it.
Accepts nested paths.
string): numberInterprets the value at the path as an int and returns it.
Accepts nested paths.
string): booleanInterprets the value at the path as a boolean and returns it.
Accepts nested paths.
string): stringInterprets the value at the path as a string and returns it.
Accepts nested paths.
string): Vector3Interprets the value at the path as a Vector3 and returns it.
Accepts nested paths.
string): EntityInterprets the value at the path as an Entity and returns it.
Accepts nested paths.
number, ...: string)Sets the value at the path to a float.
Accepts nested paths.
number, ...: string)Sets the value at the path to an int.
Accepts nested paths.
boolean, ...: string)Sets the value at the path to a boolean.
Accepts nested paths.
Vector3, ...: string)Sets the value at the path to a Vector3.
Accepts nested paths.
Entity, ...: string)Sets the value at the path to an Entity.
Accepts nested paths.
Hitbox): Vector3Bone): Vector3number// TODO
number// TODO
numbernumberEspBuilder.Color(r:
number, g: number, b: number, a: number)
Sets the RGBA color for future text/bars/icons.
EntityReturns the entity this esp builder is for.
// TODO
string)Adds the specified text on the top.
string)Adds the specified text on the bottom.
string)Adds the specified text at the left.
string)Adds the specified text at the right.
number)Adds a bar with the specified percentage on the top (left to right, 0 - 1)
// TODO: percent range
number)Adds a bar with the specified percentage on the bottom (left to right, 0 - 1)
// TODO: percent range
number)Adds a bar with the specified percentage on the left (bottom to top, 0 - 1)
// TODO: percent range
number)Adds a bar with the specified percentage on the right (bottom to top, 0 - 1)
// TODO: percent range
Texture)// TODO
Texture)Texture)Texture)Fields:
Note: I'm only a human and have no idea what most of these do. (TODO)
| Name | Type | Description |
|---|---|---|
| command_number | number |
--- |
| tick_count | number |
tick count |
| viewangles | EulerAngles |
ViewAngles (use UserCmd.Set/GetViewAngles instead) |
| aimdirection | Vector3 |
--- |
| forwardmove | number |
--- |
| sidemove | number |
--- |
| upmove | number |
--- |
| buttons | number |
buttons (bitwise) |
| impulse | number |
--- |
| weaponselect | number |
--- |
| weaponsubtype | number |
--- |
| random_seed | number |
--- |
| mousedx | number |
--- |
| mousedy | number |
--- |
| hasbeenpredicted | boolean |
--- |
| headangles | EulerAngles |
--- |
| headoffset | Vector3 |
--- |
| sendpacket | boolean |
if the usercmd is choked, set to false to choke |
UserCmd.SetViewAngles(pitch:
number, yaw: number, roll: number)
Sets the viewangles of this usercmd.
number, number, numberReturns pitch, yaw, roll of the current viewangles of this usercmd.
boolean)Determines whether to send the usercmd or not.
booleanReturns if the usercmd is sent or not (choked).
Setter for the buttons field.
Getter for the buttons field.
number)Setter for the forwardmove field.
Getter for the forwardmove field.
number)Setter for the sidemove field.
Getter for the sidemove field.
number)Setter for the upmove field.
Getter for the upmove field.
See this list for all game events and fields.
GameEvent.GetName():
string
Returns the game event name (e.g. player_hurt).
string): stringReturns the field as string.
string): numberReturns the field as int.
string): numberReturns the field as float.
GuiObject.GetName():
string
Returns the name of the gui object.
Sets the value of the gui object.
For a gui.ColorPicker this takes 4 number arguments, otherwise only a single number.
Returns the value of the gui object.
Returns 4 number for a gui.ColorPicker, otherwise only one number.
boolean)Makes the window appear or disappear.
Note: Only for
gui.Window.
booleanReturns if the window is visible.
Note: Only for
gui.Window.
string)Sets the current displayed text.
Note: Only for
gui.Text.
number)Changes the window's open/close keybind.
Note: Only for
gui.Window.
string)Adds a description to the gui object.
string)Sets options for a gui.Combobox or gui.Listbox.
number)Sets relative x position to the parent.
number)Sets relative y position to the parent.
number)Sets width of the gui object.
number)Sets height of the gui object.
boolean)Makes gui object invisible or visible.
boolean)Makes gui disabled (not clickable) or enabled.
Removes gui object.
Like gui.Reference but for children.
functionReturns a generator for the gui objects children.
File.Read():
string
Returns the file content.
File must be opened in r mode.
string)Writes the content to the file.
File must be opened in w or a mode.
numberReturns the flesize.
File must be opened in r mode.
Closes the file.
Future file operations will fail.
Warning: This must be called once you're done with file operations.
UserMessage.GetID():
number
Returns the message id.
Returns the value as an integer at the path.
Returns the value as a float at the path.
Returns the value as a strbg at the path.
StringCmd.Get():
string
Returns the command about to be sent.
string)Overwrites the command.
If command is an empty string, the command won't be sent.
Note: UDP packets are restricted to 64kb.
Socket.Bind(ip:
string, port: number)
Binds the socket to the ip and port to accept incoming messages.
Returns true if bound successfully.
string, port: number, message: string)Sends the message over UDP to the destination ip and port.
Returns message size.
string, port: number, size: number): string, string, numberReturns msg, ip, port coming from the specified ip and port.
This is non-blocking and returns nil when there's no packet.
Closes the socket.
Future socket operations will fail.
Warning: This must be called once you're done with socket operations.
Material.GetName():
string
Returns material nane.
stringReturns group the material is part of.
number)Modulates transparency of material.
number, g: number, b: number)Modulates color of material.
string, value)Changes material var flag.
string, value)Sets the shader paramater.
Shader parameters can be found here.
DrawModelContext.GetEntity():
Entity
Returns entity linked to the drawn model, can be nil (e.g. dropped weapon).
Replaces material used to draw the model.
Material can be found or created via the materials api.
Redraws the model.
Can be used to achieve various effects with different materials.
Fields:
| Name | Type | Description |
|---|---|---|
| x | number |
x coordinate |
| y | number |
y coordinate |
| z | number |
z coordinate |
Vector3.Length():
number
Returns the euclidean distance from the origin to the vector.
Vector3(1, 1, 1):Length() -- 1.7320508075688772numberReturns the Manhattan distance from the origin to the vector.
Vector3(1, 1, 1):LengthSqr() -- 3numberReturns the euclidean distance from the origin to the vector ignoring height.
Vector3(1, 0, 1):Length2D() -- 1.4142135623730951
Vector3(1, 1000, 1):Length2D() -- 1.4142135623730951numberReturns the Manhattan distance from the origin to the vector ignoring height.
Vector3(1, 0, 1):Length2DSqr() -- 2
Vector3(1, 1000, 1):Length2DSqr() -- 2Vector3)// TODO
Vector3)// TODO
// TODO
// TODO
// TODO
// TODO
// TODO
Fields:
| Name | Type | Description |
|---|---|---|
| pitch | number |
pitch angle |
| yaw | number |
yaw angle |
| roll | number |
roll angle |
// TODO
// TODO
// TODO
// TODO
// TODO
More information can be found at Valve Wiki
Fields:
| Name | Type | Description |
|---|---|---|
| fraction | number |
check wiki |
| entity | Entity |
entity that was hit |
| place.normal | Vector3 |
start of the plane that was hit |
| contents | number |
check wiki |
| hitbox | Bone |
bone that was hit |
| hitgroup | Hitbox |
hitbox that was hit |
| allsolid | boolean |
check wiki |
| startsolid | boolean |
check wiki |