A path consists of 1-4 strings.
ref = Reference("Misc", "JAVASCRIPT", "Script Items", "Hello World");
ref = Reference(["Misc", "JAVASCRIPT", "Script Items", "Hello World"]);
ref = Reference("Hello World"); // references an element named "Hello World" (can be anywhere)
// WARNING: when using a single string, make sure you dont reuse one of onetap's names
ref = Reference("Enabled"); // references fake-lag's enabledAn angle has 3 values: pitch, yaw and roll.
angle = new Angle(1, 2, 3)
angle.pitch === 1
angle.yaw === 2
angle.roll === 3A 2 dimensional vector has 2 numbers: x and y.
A 3 dimensional vector has 3 numbers: x, y and z.
4 numbers, red, green, blue and alpha.
Returns the value of this UI element.
fakelag_enable = Reference("Anti-Aim", "Fake-Lag", "Enabled");
fakelag_limit = Reference("Anti-Aim", "Fake-Lag", "Limit");
function getFakelag() {
if(!fakelag_enable.GetValue())
return 0; // fakelag disabled
return fakelag_limit.GetValue();
}stringReturns the string from this textbox.
RGBAReturns the selected color from this colorpicker.
Sets the value of this UI element.
fakelag_enable = Reference("Anti-Aim", "Fake-Lag", "Enabled");
function disableFakeLag() {
fakelag_enable.SetValue(false);
}
function toggleFakeLag() {
fakelag_enable.SetValue(!fakelag_enable.GetValue())
}RGBA)Sets the color of this colorpicker.
boolean)Enables/disables this checkbox.
booleanReturns whether this hotkey is active or not.
numberToggles this hotkey.
Returns the new active state. (0 = inactive, 1 = active)
Entity.IsTeammate():
boolean
Returns if this entity is a teammate.
booleanReturns if this entity is an enemy.
booleanReturns if this entity is a bot.
booleanReturns if this entity is yourself.
booleanReturns if this entity is valid.
booleanReturns if this entity is alive.
booleanReturns if this entity is dormant.
numberReturns the class id of this entity.
NOTE: Class ids sometimes change during game updates, and shouldn't be used for identification.
UseEntity.GetClassNameinstead.
stringReturns the class name of this entity.
stringReturns the name of this entity.
EntityReturns the current held weapon of this entity.
Entity]Returns all weapons of this entity.
Vector3Returns the position of this entity.
Returns the render box of this entity as an array:
[visible: boolean, min_x: number, min_y: number, max_x: number, max_y: number]
string, propname: string)Returns the value of the specified prop.
table will be the entity's classname most of the time (CCSPlayer for players).
string, propname: string, value)Sets the specified prop to the specified value.
table will be the entity's classname most of the time (CCSPlayer for players).
Bone): Vector3Returns the position of the bone.
Vector3Returns the position of the "eye" of this entity (the place where bullets come from).
Material.SetKeyValue(key:
string, value: string)
Overrides value of the material.
Note: Can only be called during a
Materialcallback.
Overrides value of the material.
Note: Can only be called during a
Materialcallback.
booleanDestroy this entity and returns if the destruction was successful.