SetTextDrawScale: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 32: Line 32:
* [[DrawRect]]
* [[DrawRect]]
* [[DrawTexture]]
* [[DrawTexture]]
* [[DrawTextureEx]]
* [[DrawMaterial]]

Revision as of 20:25, 30 August 2020

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.
  • 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)

See also