Set3DTextScale
set3DTextScale
Changes the visual scale of a replicated world-space text label.
Syntax
bool set3DTextScale(string textId, number scale)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
textId |
string |
yes | The opaque identifier returned by create3DText. |
scale |
number |
yes | Text scale from 0.25 to 5.0. |
Returns
Returns true when the label is owned by the current resource and the update is accepted; otherwise returns false.
Examples
Increase the size of an important location label:
set3DTextScale(locationLabel, 1.25)
Notes
- Available only in server-side resource scripts.
- The scale is validated by the server before replication.