Render module draws primitives on the screen overlay. Everything is drawn on top of the game in screen-space pixel coordinates.
Overview
Screen size
Get the current overlay dimensions.
Rectangles & Circles
Draw bounding boxes, health bars, and FOV rings.
Lines & Polygons
Connect points, draw custom radar shapes and crosshairs.
Text
Render custom strings and player names.
Images
Draw loaded textures with optional rounding.
Screen size
Render.getScreenSize
x = width, y = height).
Call this once per frame - the size can change if the user resizes the window
or switches resolution.
Rectangles & Circles
Instead of listing separate functions for outlines and filled shapes, we group them here. The parameters are nearly identical, with the exception ofthickness.
Rectangles
Vector2
required
Top-left corner of the rectangle in screen coordinates.
Vector2
required
Bottom-right corner of the rectangle in screen coordinates.
Color
default:"Color.white()"
Outline or fill color.
number
default:"1.0"
Border width in pixels. (Ignored in
rectFilled)number
default:"0.0"
Corner radius in pixels. Use for UI backgrounds or modern-looking ESP boxes.
- Box ESP (Outline)
- Health Bar (Filled)
Circles
Vector2
required
The center point of the circle on the screen.
number
required
The radius in pixels.
Color
default:"Color.white()"
Outline or fill color.
number
default:"1.0"
Line width for the outline. (Ignored in
circleFilled)Lines & Polygons
Render.line
Render.line
Render.triangle
Render.triangle
Draws a triangle outline using three specific vertices.Example: Draw a directional arrow indicating where an off-screen enemy is.
Render.polyline
Render.polyline
Draws a series of connected line segments through an array of points. Best used for custom complex shapes like radar blips or star polygons.Example: Draw a diamond shape.
Vector2[]
required
Array of vertices.
boolean
default:"false"
If true, automatically draws a line from the last point back to the first point.
Text
Render.text
Vector2
required
Top-left coordinate for the text.
string
required
The string to render.
Color
default:"Color.white()"
Text color.
number
default:"14"
Font size in pixels.
string
default:"\"segoe\""
Font name. See available fonts.
Render.calcTextSize
The measurement is exact on every call, including the first one, and costs
nothing worth measuring - it walks the font’s glyph table directly and caches
the result. It is safe to call in
render for every entity on screen.string
required
The string to measure.
number
default:"14"
Font size in pixels. Must match the size you pass to
Render.text.string
default:"\"segoe\""
Font name. Must match the font you pass to
Render.text. See available fonts.Available fonts
Images
Draw loaded Texture objects.Texture
required
A previously loaded texture instance.
Vector2
required
Top-left corner of the image rectangle.
Vector2
required
Bottom-right corner of the image rectangle.
number
default:"0.0"
Corner radius in pixels. (Only available in
imageRounded)Color
default:"Color.white()"
Acts as a tint mask. Using
Color.white() draws the image in its original colors.Cookbook: Custom Crosshairs
A quick example showing how to combine basic primitives to build custom UI elements.