Gameplay::getModelDimensions
Gets the dimensions of a model.
Calculate (maximum - minimum) to get the size, in which case, Y will be how long the model is.
Example from the scripts: GAMEPLAY::GET_MODEL_DIMENSIONS(ENTITY::GET_ENTITY_MODEL(PLAYER::PLAYER_PED_ID()), &v_1A, &v_17);
Syntax
mp.game.gameplay.getModelDimensions(modelHash, minimum, maximum);
Required Arguments
- modelHash: Model hash or name
- minimum: Vector3
- maximum: Vector3
Return value
- object: minimum, maximum
Example
// todo