ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. engineGetModelParent

Function

engineGetModelParent

Server and clientGame engineTrilogy Hub only

Returns the parent model of a model from engineRequestModel (false if it is not such a model).

Syntax

int engineGetModelParent(int modelID)

Arguments

modelIDint
Model number.

Returns

The parent or false.

Example

local id = engineRequestModel("vehicle", 562)
outputServerLog(engineGetModelParent(id)) -- 562

See also