Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Render
Copy Markdown
Open in ChatGPT
Open in Claude
As the API gets updated, you'll see more and more functions appear here
WorldToScreen(Vector3D position)
local PositionInGame = Vector3D(0.0, 0.0, 0.0)
local PositionOnMonitor = WorldToScreen(Position)
Print(tostring(PositionOnMonitor[1]) .. ", " .. tostring(PositionOnMonitor[2]))
Text(string text, Vector2D position, Color color, bool center)
Text("Hello World!", Vector2D(50, 50), Color(255, 255, 255, 255), false)
Icon(string weapon_name, Vector2D position, Color color, bool center)
--the "weapon_" prefix is not required
--name must match cs2's internal weapon name
Icon("molotov", Vector2D(500, 500), Color(255, 255, 255, 255), true)
Circle3D(Vector3D position, float radius, float thickness, Color color)
Circle3D(Vector3D(1.0, 1.0, 1.0), 5.0, 2.0, Color(255, 255, 255, 255))
Circle2D(Vector2D center, float radius, Color color, int segments, float thickness)
Circle2D(Vector2D(1, 1), 5.0, Color(255, 255, 255, 255), 15, 2.0)
Circle2DFilled(Vector2D center, float radius, Color color, int segments)
Circle2DFilled(Vector2D(1, 1), 5.0, Color(255, 255, 255, 255), 15)
Line(Vector2D from, Vector2D to, Color color, float thickness)
Line(Vector2D(1, 1), Vector2D(100, 100), Color(255, 255, 255, 255), 2.0)
Rectangle(Vector2D min, Vector2D max, Color color, float rounding, float thickness)
Rectangle(Vector2D(1, 1), Vector2D(10, 10), Color(255, 255, 255, 255), 5.0, 2.0)
RectangleFilled(Vector2D min, Vector2D max, Color color, float rounding, int segments)
RectangleFilled(Vector2D(1, 1), Vector2D(10, 10), Color(255, 255, 255, 255), 5.0, 15)
Icon(int weapon_index, Vector2D position, Color color, bool center)
--index must follow cs2's internal weapon index
Icon(49, Vector2D(500, 500), Color(255, 255, 255, 255), true)
Last updated on
Was this page helpful?
Next to read:
Confignull
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message