SetTextDrawScale: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Sets the draw scale for the DrawText function.}} | ||
{{FuncSyntax| | {{FuncSyntax|SetTextDrawScale(sx, sy)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|sx| | {{FuncParam|sx|Draw X scale.}} | ||
{{FuncParam|sy| | {{FuncParam|sy|Draw Y scale.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns nothing.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
AddEvent("OnRenderHUD", function() | |||
SetTextDrawScale(2.0, 2.0) | |||
DrawText(4, 400, "WTF ACTIVE LOL") | |||
SetTextDrawScale(1.0, 1.0) | |||
end) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} |
Revision as of 13:15, 30 August 2020
Description
Sets the draw scale for the DrawText function.
Syntax
SetTextDrawScale(sx, sy)
Parameters
- sx
Draw X scale. - sy
Draw Y scale.
Return Value
- Returns nothing.
Example
AddEvent("OnRenderHUD", function()
SetTextDrawScale(2.0, 2.0)
DrawText(4, 400, "WTF ACTIVE LOL")
SetTextDrawScale(1.0, 1.0)
end)