SetTextDrawScale

From Onset Developer Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
SetTextDrawScale

Type: Function
Context: Client
Introduced: v1.0

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)

See also