RDR3 matchUnofficial name
WEAPON::_GET_AMMO_IN_CLIP_BY_INVENTORY_UID
0x767F0AE99870FF7A ·RVA 0x04A81CC0
Signature
BOOL _GET_AMMO_IN_CLIP_BY_INVENTORY_UID(
Ped ped,
int* ammo,
Any* inventoryUid
);
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 | int* | ammo |
– |
| 2 | Any* | inventoryUid |
– |
Returns
BOOL
the game returns one byte.
Call it
// WEAPON::_GET_AMMO_IN_CLIP_BY_INVENTORY_UID
auto result = invoke<BOOL>(0x767F0AE99870FF7A, ped, &ammo, &inventoryUid);// WEAPON::_GET_AMMO_IN_CLIP_BY_INVENTORY_UID
bool result = Function.Call<bool>((Hash)0x767F0AE99870FF7A, ped, ammo, inventoryUid);-- WEAPON::_GET_AMMO_IN_CLIP_BY_INVENTORY_UID
local result = Citizen.InvokeNative(0x767F0AE99870FF7A, ped, ammo, inventoryUid)// WEAPON::_GET_AMMO_IN_CLIP_BY_INVENTORY_UID
const result = Citizen.invokeNative("0x767F0AE99870FF7A", ped, ammo, inventoryUid);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.