Skip to content

Label ​

A 3D text label owned by the resource that created it. It is removed when that resource stops, and with the player or vehicle it is attached to or the player it is shown to. Actions on a removed label return nil, err.

Label:id ​

Returns id integer

Label:set_text ​

Parameters

  • text string — Up to 255 bytes; \n breaks lines.

Returns ok boolean|nil, err string|nil

Label:set_color ​

Parameters

  • color integer — 0xRRGGBB

Returns ok boolean|nil, err string|nil

Label:set_position ​

Moves the label; for an attached label, sets its offset from the entity.

Parameters

  • x number
  • y number
  • z number

Returns ok boolean|nil, err string|nil

Documentation licensed under CC BY 4.0. DarqlineMP is not affiliated with Rockstar Games or Take-Two Interactive. Grand Theft Auto is a trademark of Take-Two Interactive Software, Inc.