Skip to content

VimpDrawTextOptions

@vimp-mp/types 2.0.1

Interface · Client API

Optional GTA text-rendering state applied by vimp.graphics.drawText.

ts
interface VimpDrawTextOptions

Members

centre

ts
centre?: boolean

Whether x is the horizontal text centre. Defaults to false.

color

ts
color?: [number, number, number, number]

RGBA text colour with byte-sized channels. Defaults to opaque white.

font

ts
font?: number

GTA text-font identifier. Defaults to 0.

outline

ts
outline?: boolean

Whether GTA draws a text outline. Defaults to false.

scale

ts
scale?: [number, number]

Horizontal and vertical text scale. Defaults to [0.35, 0.35].

VIMP developer documentation