GetAllText3D: Difference between revisions

From Onset Developer Wiki
No edit summary
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
function destroyAll3DTexts()
    for index, text in ipairs(GetAllText3D()) do
        DestroyText3D(text)
    end
end
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}

Revision as of 19:46, 27 May 2021

GetAllText3D

Type: Function
Context: Server
Introduced: v1.0

Description

Get all text 3D on the server. Useful for loops.

Syntax

GetAllText3D()

Parameters

  • This function has no parameters.

Return Value

  • Returns a table of all text 3D.

Example

function destroyAll3DTexts()
    for index, text in ipairs(GetAllText3D()) do 
        DestroyText3D(text)
    end
end

See also