Gameplay::getModelDimensions: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
Gets the dimensions of a model.<br><br>Calculate (maximum - minimum) to get the size, in which case, Y will be how long the model is. | Gets the dimensions of a model.<br><br>Calculate (maximum - minimum) to get the size, in which case, Y will be how long the model is. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">mp.game.gameplay.getModelDimensions(modelHash | <syntaxhighlight lang="javascript">mp.game.gameplay.getModelDimensions(modelHash);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''modelHash:''' Model hash or name | *'''modelHash:''' Model hash or name | ||
Revision as of 22:05, 26 November 2018
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
mp.game.gameplay.getModelDimensions(modelHash);
Required Arguments
- modelHash: Model hash or name
Return value
- object: min, max
Example
// todo