Ped::getRandomPedAtCoord

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Gets a random ped in the x/y/zRadius near the x/y/z coordinates passed.

Ped Types:
Any = -1
Player = 1
Male = 4
Female = 5
Cop = 6
Human = 26
SWAT = 27
Animal = 28
Army = 29

Syntax

mp.game.ped.getRandomPedAtCoord(x, y, z, xRadius, yRadius, zRadius, pedType);

Required Arguments

  • x: float
  • y: float
  • z: float
  • xRadius: float
  • yRadius: float
  • zRadius: float
  • pedType: int

Return value

  • Ped handle or object

Example

// todo

See also