Legacy Lua Api
  • Overview
  • Getting Started
    • Creating Scripts
    • Coding Scripts
    • Examples
  • Fatality
    • Render
    • Config
    • Menu
    • Callbacks
    • Math
    • Input
    • Datatypes
      • Shot
      • Lag Record
      • Shot Info
      • Config Value
  • Csgo
    • Interface Handler
      • Global Vars
      • Entity List
      • Engine Client
      • Cvar
      • Events
      • Debug Overlay
    • Datatypes
      • Color
      • Vector3
      • Vector2
      • Angle
      • Entity
      • Player
      • Cvar
      • Game Event
      • Font
      • Matrix3x4
Powered by GitBook

© 2025 - FATALITY

On this page
  • Functions
  • rect_filled
  • rect
  • rect_fade
  • create_font
  • text
  • text_size
  • indicator
  • screen_size
  • draw_hitgroup
  1. Fatality

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

color

rectangle color

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

color

rectangle color

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

color_one

first color of gradient

color_two

second color of gradient

horizontal

boolean

draw gradient horizontal

create_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

font

font to use

x

integer

x coordinate

y

integer

y coordinate

text

string

string of text to render

color

color to use

text_size

render:text_size( font, text )

Parameter

Data type

Description

font

font to use

text

string

string of text to measure

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

render:screen_size( )

draw_hitgroup

draws a players hitbox matrix

render:draw_hitgroup( player, matrix, hitgroup, duration, color)

Parameter

Data type

Description

player

player to draw

matrix

matrix to use

hitgroup

integer

hitgroup to draw

or -1 for all hitboxes

duration

float

how long to draw

color

color to use

PreviousExamplesNextConfig

Last updated 2 years ago

creates a font. See

returns a with the size of the text in pixels

returns a with the game window's width and height

csgo.font
csgo.vector2
csgo.vector2
csgo.color
csgo.color
csgo.color
csgo.color
csgo.font
csgo.font
csgo.player
csgo.matrix3x4_t
csgo.color
csgo.color