Перейти к содержанию

Gameplay::getModelDimensions

Материал из RAGE MP Wiki Archive
Версия от 10:08, 22 июля 2024; imported>Shr0x (See also)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Gets the dimensions of a model.

Calculate (maximum - minimum) to get the size, in which case, Y will be how long the model is.

Syntax

<syntaxhighlight lang="javascript">mp.game.gameplay.getModelDimensions(modelHash);</syntaxhighlight>

Required Arguments

  • modelHash: Model hash or name

Return value

  • object: min, max

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also