Difference between revisions of "ScriptHook.GetAllEntities"
From Nomad DB
(Created page with "Returns all entities as a Lua table with EntityId. {{Warning|This function may return up to 8192 elements, which may impact performance.}} == Syntax == <syntaxhighlight l...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | {{Page_WD2}} {{Page_WDL}} {{Page_MDE}} | ||
Returns all entities as a Lua table with [[EntityId]]. | Returns all entities as a Lua table with [[EntityId]]. | ||
{{Warning|This function may return up to 8192 elements, which may impact performance.}} | {{Warning|This function may return up to 8192 elements, which may impact performance.}} | ||
Line 7: | Line 8: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | == Integrations == | ||
+ | For '''Watch_Dogs''': | ||
* '''Returns:''' table ([[EntityId]]) | * '''Returns:''' table ([[EntityId]]) | ||
+ | |||
+ | For '''Mafia DE''': | ||
+ | * '''Returns:''' table ([[MDE_Scripting:_C_EntityGuid|C_EntityGuid]]) | ||
== Related Pages == | == Related Pages == | ||
Line 14: | Line 20: | ||
[[Category:WD2 ScriptHook Lua]] | [[Category:WD2 ScriptHook Lua]] | ||
+ | [[Category:WDL ScriptHook Lua]] | ||
+ | [[Category:MDE ScriptHook Lua]] |
Latest revision as of 11:21, 28 September 2021
Returns all entities as a Lua table with EntityId.
This function may return up to 8192 elements, which may impact performance.
Syntax
ScriptHook.GetAllEntities()
Integrations
For Watch_Dogs:
- Returns: table (EntityId)
For Mafia DE:
- Returns: table (C_EntityGuid)