GetStreamedNPC: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Get the streamed NPC identifiers in a table.}}


{{FuncSyntax|GetStreamedNPC()}}
{{FuncSyntax|GetStreamedNPC()}}
Line 8: Line 8:
{{FuncNoParam}}
{{FuncNoParam}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns a table with the streamed in NPC identifiers as values.}}
 
== Example ==
__EDIT_ME__
 
{{RelatedFunctions}}
{{NPCFunctions}}
 
 
{{Info|Function|Client|1.0}}
 
{{FuncDescription|Get the streamed text 3d identifiers in a table.}}
 
{{FuncSyntax|GetStreamedText3D()}}
 
{{FuncParameters}}
{{FuncNoParam}}
 
{{FuncReturnValue|Returns a table with streamed in text 3d identifiers.}}


== Example ==
== Example ==
<syntaxhighlight lang="Lua">
<syntaxhighlight lang="Lua">
local text3d = GetStreamedText3D()
for k, v in pairs(GetStreamedNPC()) do
    AddPlayerChat("Table key "..k..": npcid: "..v)
end
</syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{Text3DFunctions}}
{{NPCFunctions}}

Latest revision as of 15:52, 8 January 2021

GetStreamedNPC

Type: Function
Context: Client
Introduced: v1.0

Description

Get the streamed NPC identifiers in a table.

Syntax

GetStreamedNPC()

Parameters

  • This function has no parameters.

Return Value

  • Returns a table with the streamed in NPC identifiers as values.

Example

for k, v in pairs(GetStreamedNPC()) do
    AddPlayerChat("Table key "..k..": npcid: "..v)
end

See also