Skip to content

RenderTopRightText

Draw text from the top-right.

RenderTopRightText(text[, marginX[, marginY[, size[, color[, border]]]]])

Inputs: text is a string. Optional marginX, marginY, and size are numbers; color is a Color table or ARGB integer; border is a truthy flag.

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. A capture-only pass does not draw this screen primitive.

See Rendering overview for coordinate and color conventions.