hudRenderer.stringWidth

stringWidth(text): number

Returns the pixel width of a string using the current HUD font.

Parameters

text

string

The string to measure.

Returns

number

The width of the string in pixels.

Last updated