Destroy3DText
destroy3DText
Destroys a replicated world-space text label owned by the current resource.
Syntax
bool destroy3DText(string textId)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
textId |
string |
yes | The opaque identifier returned by create3DText. |
Returns
Returns true when the label existed, belonged to the current resource, and was destroyed; otherwise returns false.
Examples
Remove a temporary label when an event ends:
if eventLabel then
destroy3DText(eventLabel)
eventLabel = nil
end
Notes
- Available only in server-side resource scripts.
- Destruction is replicated reliably to connected players.