RDR3 match
WEAPON::GET_MAX_AMMO
0x85DF36CC23E9EDD3 ·RVA 0x04A842E0
Signature
BOOL GET_MAX_AMMO(Ped ped, int* ammo, Hash weaponHash);
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 | Hash | weaponHash |
– |
Returns
BOOL
Call it
// WEAPON::GET_MAX_AMMO
auto result = invoke<BOOL>(0x85DF36CC23E9EDD3, ped, &ammo, weaponHash);// WEAPON::GET_MAX_AMMO
bool result = Function.Call<bool>((Hash)0x85DF36CC23E9EDD3, ped, ammo, weaponHash);-- WEAPON::GET_MAX_AMMO
local result = Citizen.InvokeNative(0x85DF36CC23E9EDD3, ped, ammo, weaponHash)// WEAPON::GET_MAX_AMMO
const result = Citizen.invokeNative("0x85DF36CC23E9EDD3", ped, ammo, weaponHash);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.