Skip to content

RenderWorldText

Draw text at a world position.

RenderWorldText(text, position[, size[, color[, center[, border]]]])

Inputs: text is a string; position is a world { x, y, z } value. Optional size, color, center, and border configure the text.

Output: No Lua return value. Drawing may be skipped when the view or minimap is unavailable.

Errors and unavailable states: Required text or numeric arguments of the wrong type raise a Lua argument error. Missing or non-numeric vector fields read as 0. If the game view cannot be projected, nothing is drawn.

See Rendering overview for coordinate and color conventions.