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