_REMOVE_AMMO_FROM_PED
Removes amount rounds of ammo for the weapon weaponHash from the ped, tagged with removeReason.
Signature
void _REMOVE_AMMO_FROM_PED(Ped ped, Hash weaponHash, int amount, Hash removeReason); // 0xF4823C813CB8277D b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | weaponHash | Hash |
| 3 | amount | int |
| 4 | removeReason | Hash |
Facts
| Name | _REMOVE_AMMO_FROM_PED |
|---|---|
| Hash | 0xF4823C813CB8277D |
| 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(0xF4823C813CB8277D, -- _REMOVE_AMMO_FROM_PED
PlayerPedId(), -- Ped ped
GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
0, -- int amount
GetHashKey("name") -- Hash removeReason
)Citizen.invokeNative("0xF4823C813CB8277D", // _REMOVE_AMMO_FROM_PED
PlayerPedId(), // Ped ped
GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
0, // int amount
GetHashKey("name") // Hash removeReason
);Function.Call((Hash)0xF4823C813CB8277D, // _REMOVE_AMMO_FROM_PED
API.PlayerPedId(), // Ped ped
(uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
0, // int amount
(uint)API.GetHashKey("name") // Hash removeReason
);Related WEAPON natives
- _REMOVE_AMMO_FROM_PED_BY_TYPE
- _REMOVE_ALL_PED_AMMO
- _REMOVE_WEAPON_COMPONENT_FROM_PED
- _REMOVE_WEAPON_FROM_PED_BY_GUID
- _GET_AMMO_IN_PED_WEAPON_FROM_GUID
- GET_PED_AMMO_TYPE_FROM_WEAPON
- REMOVE_WEAPON_FROM_PED
- _REFILL_AMMO_IN_CURRENT_PED_WEAPON
- _ADD_AMMO_TO_PED
- _ADD_AMMO_TO_PED_BY_TYPE
- _DISABLE_ALL_SPECIAL_AMMO_FOR_PED
- _DISABLE_AMMO_TYPE_FOR_PED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.