Render
GetFont
Parameters: name, size, is_windows_font
Return values: returns font identifier
[EN] Used to add custom font. [RU] ΠΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΡΡΡ Π΄Π»Ρ Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΡ ΡΠΎΠ±ΡΡΠ²Π΅Π½Π½ΠΎΠ³ΠΎ ΡΡΠΈΡΡΠ°.
TextSize
Parameters: text, font
Return values: width, height
[EN] Finds the text size of the given string and font. [RU] ΠΠ°Ρ ΠΎΠ΄ΠΈΡ ΡΠ°Π·ΠΌΠ΅Ρ ΡΠ΅ΠΊΡΡΠ° Π΄Π»Ρ Π·Π°Π΄Π°Π½Π½ΠΎΠΉ ΡΡΡΠΎΠΊΠΈ ΠΈ ΡΡΠΈΡΡΠ°.
String
Parameters: x, y, centered, text, color, font
Rendering text now always requires a custom font you make yourself!
[EN] Draws a string with the given position, align, RGBA color and font. [RU] Π ΠΈΡΡΠ΅Ρ ΡΡΡΠΎΠΊΡ Ρ Π·Π°Π΄Π°Π½Π½ΡΠΌ ΠΏΠΎΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ΠΌ, Π²ΡΡΠ°Π²Π½ΠΈΠ²Π°Π½ΠΈΠ΅ΠΌ, ΡΠ²Π΅ΡΠΎΠΌ RGBA ΠΈ ΡΡΠΈΡΡΠΎΠΌ.
FilledCircle
Parameters: x, y, r, color
That all render functions must be called from within "Draw" callback and that rendering only supports ASCII character table.
Return values: returns true on success or false on failure.
[EN] Draws a filled circle with the given position, radius, and RGBA color. [RU] Π ΠΈΡΡΠ΅Ρ Π·Π°ΠΏΠΎΠ»Π½Π΅Π½Π½ΡΠΉ ΠΊΡΡΠ³ Ρ Π·Π°Π΄Π°Π½Π½ΡΠΌΠΈ ΠΏΠΎΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ΠΌ, ΡΠ°Π΄ΠΈΡΡΠΎΠΌ ΠΈ ΡΠ²Π΅ΡΠΎΠΌ RGBA.
TexturedRect
Parameters: x, y, width, height, texture identifier
Return values: returns true on success or false on failure.
[EN] Draws a textured rectangle with the given position, size, and texture. [RU] Π ΠΈΡΡΠ΅Ρ ΡΠ΅ΠΊΡΡΡΡΠΈΡΠΎΠ²Π°Π½Π½ΡΠΉ ΠΏΡΡΠΌΠΎΡΠ³ΠΎΠ»ΡΠ½ΠΈΠΊ Ρ Π·Π°Π΄Π°Π½Π½ΡΠΌΠΈ ΠΏΠΎΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ΠΌ, ΡΠ°Π·ΠΌΠ΅ΡΠΎΠΌ ΠΈ ΡΠ΅ΠΊΡΡΡΡΠΎΠΉ.
AddTexture
Parameters: path
- Path is relative to CSGO folder, so you don't need full path. - Supports the following formats:
.bmp
.dds
.dib
.hdr
.jpg
.pfm
.png
.ppm
.tga
Return values: returns texture identifier.
[EN] Adds a texture. [RU] ΠΠΎΠ±Π°Π²Π»ΡΠ΅Ρ ΡΠ΅ΠΊΡΡΡΡΡ.
Polygon
Parameters: array of 3 screen positions, color
[EN] Draws a polygon with shape based on arguments passed. [RU] Π ΠΈΡΡΠ΅Ρ ΠΌΠ½ΠΎΠ³ΠΎΡΠ³ΠΎΠ»ΡΠ½ΠΈΠΊ Ρ ΡΠΎΡΠΌΠΎΠΉ Π½Π° ΠΎΡΠ½ΠΎΠ²Π΅ ΠΏΠ΅ΡΠ΅Π΄Π°Π½Π½ΡΡ Π°ΡΠ³ΡΠΌΠ΅Π½ΡΠΎΠ².
GradientRect
Parameters: x, y, w, h, dir, [ col1 ], [ col2 ]
Dir argument stands for direction and 0 is vertical while 1 is horizontal
Return values: returns true on success or false on failure.
[EN] Draws a gradient rectangle with the given position, size, and RGBA color. [RU] Π ΠΈΡΡΠ΅Ρ ΠΏΡΡΠΌΠΎΡΠ³ΠΎΠ»ΡΠ½ΠΈΠΊ Π³ΡΠ°Π΄ΠΈΠ΅Π½ΡΠ° Ρ Π·Π°Π΄Π°Π½Π½ΡΠΌΠΈ ΠΏΠΎΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ΠΌ, ΡΠ°Π·ΠΌΠ΅ΡΠΎΠΌ ΠΈ ΡΠ²Π΅ΡΠΎΠΌ RGBA.
GetScreenSize
[EN] Returns width and height of your screen. [RU] ΠΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΡΠΈΡΠΈΠ½Ρ ΠΈ Π²ΡΡΠΎΡΡ Π²Π°ΡΠ΅Π³ΠΎ ΡΠΊΡΠ°Π½Π°.
WorldToScreen
Parameters: [x, y, z]
The third array object will be 1 if the world position is in front of you, 0 if it is behind you.
Please note that all render functions must be called from within "Draw" callback.
Return values: returns the value of the parameter or false.
[EN] Finds the world position for the given screen position. [RU] ΠΠ°Ρ ΠΎΠ΄ΠΈΡ ΠΌΠΈΡΠΎΠ²ΡΡ ΠΏΠΎΠ·ΠΈΡΠΈΡ Π΄Π»Ρ Π΄Π°Π½Π½ΠΎΠΉ ΠΏΠΎΠ·ΠΈΡΠΈΠΈ Π½Π° ΡΠΊΡΠ°Π½Π΅.
Circle
Parameters: x, y, r, color
Please note that all render functions must be called from within "Draw" callback and that rendering only supports ASCII character table.
Return values: returns true on success or false on failure.
[EN] Draws a circle with the given position, radius, and RGBA color. [RU] Π ΠΈΡΡΠ΅Ρ ΠΊΡΡΠ³ Ρ Π·Π°Π΄Π°Π½Π½ΡΠΌΠΈ ΠΏΠΎΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ΠΌ, ΡΠ°Π΄ΠΈΡΡΠΎΠΌ ΠΈ ΡΠ²Π΅ΡΠΎΠΌ RGBA.
FilledRect
Parameters: x, y, width, height, color
Please note that all render functions must be called from within "Draw" callback and that rendering only supports ASCII character table.
Return values: returns true on success or false on failure.
[EN] Draws a filled rectangle with the given position, size, and RGBA color. [RU] Π ΠΈΡΡΠ΅Ρ Π·Π°ΠΏΠΎΠ»Π½Π΅Π½Π½ΡΠΉ ΠΏΡΡΠΌΠΎΡΠ³ΠΎΠ»ΡΠ½ΠΈΠΊ Ρ Π·Π°Π΄Π°Π½Π½ΡΠΌΠΈ ΠΏΠΎΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ΠΌ, ΡΠ°Π·ΠΌΠ΅ΡΠΎΠΌ ΠΈ ΡΠ²Π΅ΡΠΎΠΌ RGBA.
Rect
Parameters: x, y, width, height, color
Please note that all render functions must be called from within "Draw" callback and that rendering only supports ASCII character table.
Return values: returns true on success or false on failure.
[EN] Draws a rectangle with the given position, size, and RGBA color. [RU] Π ΠΈΡΡΠ΅Ρ ΠΏΡΡΠΌΠΎΡΠ³ΠΎΠ»ΡΠ½ΠΈΠΊ Ρ Π·Π°Π΄Π°Π½Π½ΡΠΌΠΈ ΠΏΠΎΠ»ΠΎΠΆΠ΅Π½ΠΈΠ΅ΠΌ, ΡΠ°Π·ΠΌΠ΅ΡΠΎΠΌ ΠΈ ΡΠ²Π΅ΡΠΎΠΌ RGBA.
Line
Parameters: x, y, x1, y1, color
Please note that all render functions must be called from within "Draw" callback and that rendering only supports ASCII character table.
Return values: Returns true on success or false on failure.
[EN] Draws a line with the given position RGBA color. [RU] Π ΠΈΡΡΠ΅Ρ Π»ΠΈΠ½ΠΈΡ Ρ Π·Π°Π΄Π°Π½Π½ΡΠΌ ΡΠ²Π΅ΡΠΎΠΌ RGBA ΠΏΠΎΠ·ΠΈΡΠΈΠΈ.
Last updated
Was this helpful?