Label::Label
Creates a label in your world.
Syntax
```js mp.labels.new(text, position, {
los: los,
font: font,
drawDistance: drawDistance,
color: color,
dimension: dimension
}); ```
Parameters
- <span style="font-weight:bold; color:red;">*</span>text:
- <span style="font-weight:bold; color:red;">*</span>position:
- los: - Line of Sight (Text will hide if blocked by an entity).
- font: ([Font Types](/fonts-and-colors#drawtext-fonts))
- drawDistance:
- color:
- dimension:
<span style="font-weight:bold; color:red;">*</span> = Required
Example
Creates a label with the text "Welcome to Los Santos"
```js mp.labels.new("Welcome to Los Santos", new mp.Vector3(-431.88, 1146.86, 327),
\{
los: true,
font: 1,
drawDistance: 100,
\});
```
Labels also supports multiple lines of text, this can be achieved using "\n".