Difference between revisions of "D3d.SetColor"
From Nomad DB
(Created page with "Sets the current rendering color for shapes and text. {{Warning: This function can only be called from inside OnRender event!}} == Syntax == <synt...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | {{Page_WD2}}{{Page_MDE}}{{Page_WDL}} | ||
Sets the current rendering color for shapes and text. | Sets the current rendering color for shapes and text. | ||
− | {{Warning | + | {{Warning|This function can only be called from inside [[Event: Script:OnRender|OnRender]] event!}} |
== Syntax == | == Syntax == | ||
Line 12: | Line 13: | ||
== Related Pages == | == Related Pages == | ||
− | * [[ | + | * [[ScriptHook: Rendering]] |
[[Category:WD2 ScriptHook Lua]] | [[Category:WD2 ScriptHook Lua]] | ||
+ | [[Category:WDL ScriptHook Lua]] |
Latest revision as of 11:11, 15 April 2021
Sets the current rendering color for shapes and text.
This function can only be called from inside OnRender event!
Syntax
d3d.SetColor(r, g, b[, a])
- r, g, b: number (0-255)
- a: number (0-255 Opacity, optional - default = 255)