Destroy3DText: Difference between revisions

From Wiki G1R-MP G1 Remake Multiplayer
Jump to navigation Jump to search
Synchronize Lua API documentation
 
Complete Lua function catalog
 
Line 31: Line 31:
* Destruction is replicated reliably to connected players.
* Destruction is replicated reliably to connected players.


[[Category:Lua Functions]]
[[Category:Server Functions]]
[[Category:Server Functions]]
[[Category:World Functions]]
[[Category:World Functions]]

Latest revision as of 09:52, 15 August 2026

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.