Skip to main content

DrawText2D

Draws 2D text at specified screen coordinates.

Parameters

  • x: X coordinate of the text on the screen (number).
  • y: Y coordinate of the text on the screen (number).
  • text: The text to display (string).
  • scale: Scale of the text (number).
  • center: Whether to center the text (boolean).

Usage

exports['FS-Lib']:DrawText2D(0.5, 0.8, "2D Text", 0.6, true)