Gameplay::getModelDimensions: Difference between revisions
(yay) |
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, minimum, maximum);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.gameplay.getModelDimensions(modelHash, minimum, maximum);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''modelHash:''' Model hash or name | *'''modelHash:''' Model hash or name | ||
===Return value=== | ===Return value=== | ||
*'''object:''' | *'''object:''' min, max | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
Revision as of 21:50, 22 March 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, minimum, maximum);
Required Arguments
- modelHash: Model hash or name
Return value
- object: min, max
Example
// todo