GetObjectModelGroup

From Onset Developer Wiki
Revision as of 16:57, 13 December 2019 by 28days (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GetObjectModelGroup

Type: Function
Context: Client
Introduced: v1.0

Description

Returns the group name of an object model.

Syntax

GetObjectModelGroup(model)

Parameters

  • model
    The model identifier from Objects.

Return Value

  • Returns the objects model category as string.
General, Buildings, Building Parts, Industrial, Other Parts, Small Items, Walls, Ramps Tubes, Roads, Props, Signs, Nature, Food, Interior, Clothing, Weapons, Specials, Misc

Example

local modelId = 455
print("The object model "..modelId.." is part of group "..GetObjectModelGroup(modelId).." objects.")

See also