Log In
Sign Up
Game code

PED::GET_PED_NEARBY_PEDS

0x8173B594DC070A03 ·RVA 0x04BCB640

Signature

void GET_PED_NEARBY_PEDS(
    Ped ped,
    Any* sizeAndPeds,
    int ignoredPedType
);

The scripts pass 4 values to this native; the decoded signature lists 3 (arguments the game doesn't read are left out).

Parameters 3

#TypeNameNotes
0Pedped –
1Any*sizeAndPeds –
2intignoredPedType –

Returns

void Nothing.

RDR3 says int; the game writes none.

Notes

  • Names from RDR3; types from the game code, which differs from RDR3's signature:
  • p3, in RDR3's signature, is not passed in GTA VI.
  • This lines up with RDR3's signature in more than one way; it takes the one that keeps RDR3's arguments first and puts the new ones after them.

Call it

// PED::GET_PED_NEARBY_PEDS
invoke<Void>(0x8173B594DC070A03, ped, &sizeAndPeds, ignoredPedType);

Generic call-by-hash templates in the style of the common GTA V / RDR2 script frameworks. Adapt the types to your tooling.

Improve this page

Know what this native does, a better name, or the real parameter types? Suggest an edit. A moderator reviews every suggestion, and approved edits credit you here.