Render
fatality.render
Functions
rect_filled
draws a filled rectangle
render:rect_filled( x, y, w, h, color )
Parameter
Data type
Description
x
integer
x coordinate
y
integer
y coordinate
w
integer
rectangle width
h
integer
rectangle height
rect
draws a rectangle outline
render:rect( x, y, w, h, color )
Parameter
Data type
Description
x
integer
x coordinate
y
integer
y coordinate
w
integer
rectangle width
h
integer
rectangle height
rect_fade
draws a gradient rectangle
render:rect_fade( x, y, w, h, color_one, color_two, horizontal )
Parameter
Data type
Description
x
integer
x coordinate
y
integer
y coordinate
w
integer
rectangle width
h
integer
rectangle height
horizontal
boolean
draw gradient horizontal
create_font
creates a font. See csgo.font
render:create_font( font_family, size, weight, outline )
Parameter
Data type
Description
font_family
string
name of font family
size
integer
height of font in pixels
weight
integer
thickness of font
outline
boolean
use an outline
text
draws a string of text at a position
render:text( font, x, y, text , color )
Parameter
Data type
Description
x
integer
x coordinate
y
integer
y coordinate
text
string
string of text to render
text_size
returns a csgo.vector2 with the size of the text in pixels
render:text_size( font, text )
indicator
draws an indicator
render:indicator( x, y, text, active, bar_progress )
Parameter
Data type
Description
x
integer
x coordinate
y
integer
y coordinate
text
string
string of text to draw
active
boolean
is active
bar_progress
float
value of bar progress ( 0 - 1 )
or -1 for no bar
screen_size
returns a csgo.vector2 with the game window's width and height
render:screen_size( )
draw_hitgroup
draws a players hitbox matrix
render:draw_hitgroup( player, matrix, hitgroup, duration, color)
Parameter
Data type
Description
hitgroup
integer
hitgroup to draw
or -1 for all hitboxes
duration
float
how long to draw
Last updated