Home Blog CS:GO

Types used by onetap

Path

A path consists of 1-4 strings or an array of 1-4 strings.

UI.GetValue("Misc", "JAVASCRIPT", "Script Items", "Hello World");
UI.GetValue("Hello World");  // searches for an element named "Hello World"

UI.GetValue(["Misc", "JAVASCRIPT", "Script Items", "Hello World"]);
UI.GetValue(["Hello World"]);  // searches for an element named "Hello World"

// WARNING: when using a single string, make sure you dont reuse one of onetap's names
UI.GetValue("Enabled"); // returns if FAKELAG is enabled

// TODO: check if FKAELAG in v4

Angle

An angle is a list of 3 numbers: pitch, yaw and roll.

// TODO: get actual values :D
Local.GetViewAngles(); // [1, 2, 3]
Local.SetViewAngles([1, 2, 3]);

Vector2

A 2 dimensional vector is a list of 2 numbers: x and y.

Vector3

A 3 dimensional vector is a list of 3 numbers: x, y and z.

RGBA

A list of 4 numbers, red, green, blue and alpha.

See also: https://en.wikipedia.org/wiki/RGBA_color_model

Size

Sizes 0 to 7 are special fonts, see Font for more information.
Sizes 8 to 48 are the default font with different sizes.

Font

A font identifier is a number.

For ids between 0 and 6 check this table:

Id Description
0 Default CS:GO font (depends on CS:GO language)
1 Bold font
2 Small font
3 Small & bold font
4 Big font
5 Icons
6 Small icons

Font ids between 7 and 48 are the default font but with different sizes (even numbers only, odd numbers are invisible).

Using Render.AddFont or Render.FindFont returns a new unique font id.

Hitbox

A hitbox is a number and is primarily used by events.

Id Description
0 Generic
1 Head
2 Chest
3 Stomach
4 Left Arm
5 Right Arm
6 Left Leg
7 Right Leg
8 Neck

Note: There's also hitbox 10 called "gear" which "alerts NPC, but doesn't do damage or bleed (1/100th damage)"
No idea what it does, and you probably will never have to deal with it using onetap, so I decided to leave it out.

Bone

A bone is a number.

Id Description
0 Head
1 Neck (unused)
2 Pelvis
3 Body
4 Thorax
5 Chest
6 Upper chest
7 Left thigh
8 Right thigh
9 Left calf
10 Right calf
11 Left foot
12 Right foot
13 Left hand
14 Right hand
15 Left upper arm
16 Left forearm
17 Right upper arm
18 Right forearm

Buttons

Buttons is a number.

Bit Name
0 IN_ATTACK
1 IN_JUMP
2 IN_DUCK
3 IN_FORWARD
4 IN_BACK
5 IN_USE
6 IN_CANCEL
7 IN_LEFT
8 IN_RIGHT
9 IN_MOVELEFT
10 IN_MOVERIGHT
11 IN_ATTACK2
12 IN_RUN
13 IN_RELOAD
14 IN_ALT1
15 IN_ALT2
16 IN_SCORE
17 IN_SPEED
18 IN_WALK
19 IN_ZOOM
20 IN_WEAPON1
21 IN_WEAPON2
22 IN_RAWDUCK