Player::getNearbyPeds

From RAGE Multiplayer Wiki

sizeAndPeds - is a pointer to an array. The array is filled with peds found nearby the ped supplied to the first argument.
ignore - ped type to ignore

Return value is the number of peds found and added to the array passed.

-----------------------------------

To make this work in most menu bases at least in C++ do it like so,

Formatted Example: pastebin.com/D8an9wwp

-----------------------------------

Example: gtaforums.com/topic/789788-function-args-to-pedget-ped-nearby-peds/?p=1067386687

Syntax

player.getNearbyPeds(sizeAndPeds, ignore);

Required Arguments

  • sizeAndPeds: int
  • ignore: int

Return value

  • int

Example

// todo

See also