Game codeUnofficial name
WEAPON::_GET_BEST_PED_WEAPON_IN_INVENTORY
0xEB3717478467AFF9 ·RVA 0x04A82110
Signature
void _GET_BEST_PED_WEAPON_IN_INVENTORY(
Ped ped,
BOOL p1,
Any* guidPrimary,
BOOL p3
);
The scripts pass 5 values to this native; the decoded signature lists 4 (arguments the game doesn't read are left out).
Parameters 4
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Ped | ped |
– |
| 1 | BOOL | p1 |
RDR3 doesn't give a type; the game reads it as a true/false value. |
| 2 | Any* | guidPrimary |
– |
| 3 | BOOL | p3 |
– |
Returns
void Nothing.
Notes
- Names from RDR3; types from the game code, which differs from RDR3's signature:
- p3 is not in RDR3's signature; the game reads it as a true/false value.
Call it
// WEAPON::_GET_BEST_PED_WEAPON_IN_INVENTORY
invoke<Void>(0xEB3717478467AFF9, ped, p1, &guidPrimary, p3);// WEAPON::_GET_BEST_PED_WEAPON_IN_INVENTORY
Function.Call((Hash)0xEB3717478467AFF9, ped, p1, guidPrimary, p3);-- WEAPON::_GET_BEST_PED_WEAPON_IN_INVENTORY
Citizen.InvokeNative(0xEB3717478467AFF9, ped, p1, guidPrimary, p3)// WEAPON::_GET_BEST_PED_WEAPON_IN_INVENTORY
Citizen.invokeNative("0xEB3717478467AFF9", ped, p1, guidPrimary, p3);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.