Set3DTextDrawDistance: Difference between revisions
Jump to navigation
Jump to search
Synchronize Lua API documentation |
Complete Lua function catalog |
||
| Line 30: | Line 30: | ||
* The client performs distance culling using this server-authoritative value. | * The client performs distance culling using this server-authoritative value. | ||
[[Category:Lua Functions]] | |||
[[Category:Server Functions]] | [[Category:Server Functions]] | ||
[[Category:World Functions]] | [[Category:World Functions]] | ||
[[Category:Spatial Functions]] | [[Category:Spatial Functions]] | ||
Latest revision as of 09:54, 15 August 2026
set3DTextDrawDistance
Changes the maximum distance at which a replicated world-space text label is rendered.
Syntax
bool set3DTextDrawDistance(string textId, number drawDistance)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
textId |
string |
yes | The opaque identifier returned by create3DText. |
drawDistance |
number |
yes | Maximum render distance in metres, from 1 to 1000. |
Returns
Returns true when the label is owned by the current resource and the update is accepted; otherwise returns false.
Examples
Make an interaction label visible only at close range:
set3DTextDrawDistance(interactionLabel, 8.0)
Notes
- Available only in server-side resource scripts.
- The client performs distance culling using this server-authoritative value.