GetAllNPC: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetAllNPC()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|__EDIT_ME__}} == Example == _..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Gets all the NPC IDs in a table.}} | ||
{{FuncSyntax|GetAllNPC()}} | {{FuncSyntax|GetAllNPC()}} | ||
Line 8: | Line 8: | ||
{{FuncNoParam}} | {{FuncNoParam}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns a table with a list of NPC IDs.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
local _npc = GetAllNPC() | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{NPCFunctions}} |
Latest revision as of 18:56, 19 December 2019
Description
Gets all the NPC IDs in a table.
Syntax
GetAllNPC()
Parameters
- This function has no parameters.
Return Value
- Returns a table with a list of NPC IDs.
Example
local _npc = GetAllNPC()
See also
- GetStreamedNPC
- GetNPCLocation
- SetNPCOutline
- SetNPCPropertyValue
- GetNPCPropertyValue
- CreateNPC
- DestroyNPC
- IsValidNPC
- GetAllNPC
- GetNPCCount
- IsNPCStreamedIn
- SetNPCLocation
- GetNPCLocation
- SetNPCHealth
- GetNPCHealth
- SetNPCAnimation
- SetNPCHeading
- GetNPCHeading
- SetNPCTargetLocation
- SetNPCFollowPlayer
- SetNPCFollowVehicle
- SetNPCRagdoll
- SetNPCRespawnTime