Destroy3DText

From Wiki G1R-MP G1 Remake Multiplayer
Revision as of 20:32, 13 August 2026 by QCherry (talk | contribs) (Synchronize Lua API documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.