SetTextDrawScale: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|sx|Draw X scale.}} | {{FuncParam|sx|Draw X scale between 0.0 and 128.0}} | ||
{{FuncParam|sy|Draw Y scale.}} | {{FuncParam|sy|Draw Y scale between 0.0 and 128.0}} | ||
{{FuncReturnValue|Returns nothing.}} | {{FuncReturnValue|Returns nothing.}} |
Latest revision as of 09:54, 5 October 2020
Description
Sets the draw scale for the DrawText function.
Syntax
SetTextDrawScale(sx, sy)
Parameters
- sx
Draw X scale between 0.0 and 128.0 - sy
Draw Y scale between 0.0 and 128.0
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)