wave-sinerender

Functions for drawing various shapes and text on the screen.

!! All must be called in "render" hook !!

render add_line(position1, position2, color, thickness) -> void

Draws a line from position1 to position2.

Name
Type

position1

vector2

position2

vector2

color

color

thickness

float -> optional

render add_rect(mins, maxs, color, rounding, thickness) -> void

Draws a rectangle starting.

Name
Type

mins

vector2

maxs

vector2

color

color

rounding

float -> optional

thickness

float -> optional

render add_rect_filled() -> void

Identical usage as add_rect.

render get_text_size(text) -> vector2

Returns how big/size of the text.

render add_arc(position, radius, angle_start, angle_end, color, thickness, segments) -> void

Draws continuous portion of a curved line

Name
Type

position

vector2

radius

float

angle_start

float

angle_end

float

color

color

thickness

float -> optional

segments

int -> optional

render add_pie_filled(position, radius, angle_start, angle_end, color, segments) -> void

Identical usage as add_arc.

Name
Type

position

vector2

radius

float

angle_start

float

angle_end

float

color

color

segments

int -> optional

render add_text(position, text, color, size, outline) -> void

Draws text at position.

Name
Type

position

vector2

text

string

color

color

size

float -> optional

outline

bool -> optional

render add_extra(text, type, color) -> void

Draws text on the player ESP.

  • Manually supported games will use character instead of player.

  • This can only be called in the "esp_drawextra" hook.

Name
Type

text

string

type

ESP_TOP

ESP_BOTTOM

ESP_RIGHT

ESP_LEFT

color

color

render add_circle(position, radius, color) -> void

Adds a circle at position with changable radius.

Name
Type

position

vector2

radius

number

color

color

render add_circle_filled() -> void

Identical usage as add_circle.

render add_polyline(points, color, thickness) -> void

Creates a line with multiple points

Name
Type

points

{vector2}

color

color

thickness

float -> optional

render add_triangle(point1, point2, point3, color) -> void

Plots a triangle

Name
Type

point1

vector2

point2

vector2

point3

vector2

color

color

render add_triangle_filled() -> void

Identical usage as add_triangle.

render add_ngon(vector2, radius, color, segments, thickness)

Plots a poly shape.

Name
Type

vector2

vector2

radius

float

color

color

segment

int -> optional

thickness

float -> optional

render add_ngon_filled() -> void

Identical usage as add_ngon.

texture_table -> table

Name
Type

id

int

width

float

height

float

render load_texture(filename) -> texture_table

Converts the texture to be usable for render.addimage.

We currently support jpg, jpeg, png, bmp, webp file types.

Name
Type

filename

string

render add_texture(textureid, min, max, alpha) -> void

Renders the image from load_texture textureid.

Name
Type

textureid

texture_table.id

min

vector2

max

vector2

alpha

float -> optional

Example

Result

Last updated