RDR3 match
WEAPON::GET_BEST_PED_WEAPON
0x7477751D7B7C1671 ·RVA 0x04A821A0
Signature
Hash GET_BEST_PED_WEAPON(Ped ped, BOOL p1, BOOL p2);
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 | BOOL | p1 |
– |
| 2 | BOOL | p2 |
– |
Returns
Hash
Call it
// WEAPON::GET_BEST_PED_WEAPON
auto result = invoke<Hash>(0x7477751D7B7C1671, ped, p1, p2);// WEAPON::GET_BEST_PED_WEAPON
uint result = Function.Call<uint>((Hash)0x7477751D7B7C1671, ped, p1, p2);-- WEAPON::GET_BEST_PED_WEAPON
local result = Citizen.InvokeNative(0x7477751D7B7C1671, ped, p1, p2)// WEAPON::GET_BEST_PED_WEAPON
const result = Citizen.invokeNative("0x7477751D7B7C1671", ped, p1, p2);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.