Gameplay::getModelDimensions

From RAGE Multiplayer Wiki
Revision as of 21:06, 6 May 2017 by Marty uploader (talk | contribs) (yay)

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

See also

Template:Gameplay s function c