Render

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)


On This Page
Render