_ADD_AMMO_TO_PED
Adds amount rounds of ammo for the weapon weaponHash to the ped, tagged with the reason hash addReason.
Signature
void _ADD_AMMO_TO_PED(Ped ped, Hash weaponHash, int amount, Hash addReason); // 0xB190BCA3F4042F95 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | weaponHash | Hash |
| 3 | amount | int |
| 4 | addReason | Hash |
Facts
| Name | _ADD_AMMO_TO_PED |
|---|---|
| Hash | 0xB190BCA3F4042F95 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xB190BCA3F4042F95, -- _ADD_AMMO_TO_PED
PlayerPedId(), -- Ped ped
GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
0, -- int amount
GetHashKey("name") -- Hash addReason
)Citizen.invokeNative("0xB190BCA3F4042F95", // _ADD_AMMO_TO_PED
PlayerPedId(), // Ped ped
GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
0, // int amount
GetHashKey("name") // Hash addReason
);Function.Call((Hash)0xB190BCA3F4042F95, // _ADD_AMMO_TO_PED
API.PlayerPedId(), // Ped ped
(uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
0, // int amount
(uint)API.GetHashKey("name") // Hash addReason
);Related WEAPON natives
- _ADD_AMMO_TO_PED_BY_TYPE
- SET_PED_AMMO_TO_DROP
- _DISABLE_ALL_SPECIAL_AMMO_FOR_PED
- _DISABLE_AMMO_TYPE_FOR_PED
- _DISABLE_AMMO_TYPE_FOR_PED_WEAPON
- _ENABLE_ALL_SPECIAL_AMMO_FOR_PED
- _ENABLE_AMMO_TYPE_FOR_PED
- _ENABLE_AMMO_TYPE_FOR_PED_WEAPON
- _EXPLODE_PED_AMMO_TYPE
- _GET_AMMO_IN_PED_WEAPON_FROM_GUID
- _GET_CURRENT_PED_WEAPON_AMMO_TYPE
- _GIVE_WEAPON_COLLECTION_TO_PED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.