Object::getClosestObjectOfType

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

Has 8 params in the latest patches.

isMission - if true doesn't return mission objects

Syntax

mp.game.object.getClosestObjectOfType(x, y, z, radius, modelHash, isMission, p6, p7);

Required Arguments

  • x: float
  • y: float
  • z: float
  • radius: float
  • modelHash: Model hash or name
  • isMission: Boolean
  • p6: Boolean
  • p7: Boolean

Return value

  • Object handle or object

Example

// todo

See also

  • [[Object::disableGlow|mp.game.object.disableGlow