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
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Ped | ped |
– |
| 1 | Any* | sizeAndPeds |
– |
| 2 | int | ignoredPedType |
– |
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);// PED::GET_PED_NEARBY_PEDS
Function.Call((Hash)0x8173B594DC070A03, ped, sizeAndPeds, ignoredPedType);-- PED::GET_PED_NEARBY_PEDS
Citizen.InvokeNative(0x8173B594DC070A03, ped, sizeAndPeds, ignoredPedType)// PED::GET_PED_NEARBY_PEDS
Citizen.invokeNative("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.