GetStreamedNPC: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetStreamedNPC()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|__EDIT_ME__}} == Example...")
 
No edit summary
 
(2 intermediate revisions 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 ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
for k, v in pairs(GetStreamedNPC()) do
    AddPlayerChat("Table key "..k..": npcid: "..v)
end
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{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