- Documentation
- Shared functions
- engineGetModelParent
Function
engineGetModelParent
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