RDR3 match
WEAPON::GET_PED_AMMO_BY_TYPE
0xAA86B93EC62DDFCE ·RVA 0x04A84F50
Signature
int GET_PED_AMMO_BY_TYPE(Ped ped, Hash ammoType);
The scripts pass 3 values to this native; the decoded signature lists 2 (arguments the game doesn't read are left out).
Parameters 2
| # | Type | Name | Notes |
|---|---|---|---|
| 0 | Ped | ped |
– |
| 1 | Hash | ammoType |
– |
Returns
int
Call it
// WEAPON::GET_PED_AMMO_BY_TYPE
auto result = invoke<int>(0xAA86B93EC62DDFCE, ped, ammoType);// WEAPON::GET_PED_AMMO_BY_TYPE
int result = Function.Call<int>((Hash)0xAA86B93EC62DDFCE, ped, ammoType);-- WEAPON::GET_PED_AMMO_BY_TYPE
local result = Citizen.InvokeNative(0xAA86B93EC62DDFCE, ped, ammoType)// WEAPON::GET_PED_AMMO_BY_TYPE
const result = Citizen.invokeNative("0xAA86B93EC62DDFCE", ped, ammoType);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.