GetAllObjects: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 16: Line 16:


{{RelatedFunctions}}
{{RelatedFunctions}}
{{NPCFunctions}}
{{ServerObjectFunctions}}

Revision as of 09:46, 20 January 2020

GetAllObjects

Type: Function
Context: Server
Introduced: v1.0.3

Description

Returns existing object ids in a table. If you have ten thousands of objects then don't call this too often.

Syntax

GetAllObjects()

Parameters

  • This function has no parameters.

Return Value

  • Returns a table with a list of all object ids.

Example

local objects = GetAllObjects()

See also