GetStreamedNPC: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
Line 8: Line 8:
{{FuncNoParam}}
{{FuncNoParam}}


{{FuncReturnValue|Returns a table with streamed in NPC identifiers.}}
{{FuncReturnValue|Returns a table with the streamed in NPC identifiers as values.}}


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


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