GetAllObjects

From Onset Developer Wiki
Revision as of 20:26, 18 January 2020 by BlueMountains (talk | contribs) (Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|Returns existing object ids in a table. If you have ten thousands of objects then don't call this too often.}} {{FuncSyntax|Ge...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GetAllObjects

Type: Function
Context: Server
Introduced: v1.0

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