Destroy the label
Return the label's color
Return the filename for the custom TrueType font used for the label. Returns an empty string if no custom font is used.
Return the package id for the package containing the TrueType font used for the label. Returns an empty string if no custom font is used.
Return the label's unique id
Return the label's player slot. If no player slot is set, returns -1. If a player slot is set, the label text will be the player's name in that slot, or the slot name if there is no player in the slot.
Return the label's position
Return the label's rotation
Return the label's scale
Return the label's text
Return whether the label is valid. A label becomes invalid after it has been destroyed or deleted by a player
Set the label's color
The new color
Set the TrueType font file used for the label. Place your font files in the "Fonts" folder of your package.
The filename of the TTF file to load. Set to empty string to use the standard font.
The id of the package that contains the TTF file (in the Fonts folder). Can usually be empty when used from scripts to use the same package that contains the script file, but you need to explicitly pass refPackageId for the current package or a package id when you use it in a callback. You can find package ids in the manifest.json file in package folders. Usually you won't use this parameter, unless you have a specific reason to load a font from a different package than where the script is located.
Set the label's unique id. Returns whether the id was changed successfully. Fails if the id is already used by another label.
Set the label's player slot. Set to -1 to remove association to a slot. If a player slot is set, the label text will be the player's name in that slot, or the slot name if there is no player in the slot.
Set the label's position.
The new position
Set the label's rotation.
The new rotation
Set the label's scale.
The new scale
Set the label's text
The new text
An label that shows text on the table. Can be placed and modified by players