SET_PED_AMMO
Sets the ped's ammo for the weapon weaponHash to ammo.
Signature
void SET_PED_AMMO(Ped ped, Hash weaponHash, int ammo); // 0x14E56BC5B5DB6A19 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | ped | Ped |
| 2 | weaponHash | Hash |
| 3 | ammo | int |
Facts
| Name | SET_PED_AMMO |
|---|---|
| Hash | 0x14E56BC5B5DB6A19 |
| 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(0x14E56BC5B5DB6A19, -- SET_PED_AMMO
PlayerPedId(), -- Ped ped
GetHashKey("weapon_revolver_cattleman"), -- Hash weaponHash
0 -- int ammo
)Citizen.invokeNative("0x14E56BC5B5DB6A19", // SET_PED_AMMO
PlayerPedId(), // Ped ped
GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
0 // int ammo
);Function.Call((Hash)0x14E56BC5B5DB6A19, // SET_PED_AMMO
API.PlayerPedId(), // Ped ped
(uint)API.GetHashKey("weapon_revolver_cattleman"), // Hash weaponHash
0 // int ammo
);Related WEAPON natives
- SET_PED_AMMO_BY_TYPE
- SET_PED_AMMO_TO_DROP
- SET_PED_INFINITE_AMMO
- _SET_AMMO_TYPE_FOR_PED_WEAPON
- _SET_AMMO_TYPE_FOR_PED_WEAPON_INVENTORY
- _SET_PED_INFINITE_AMMO_CLIP
- SET_PED_CURRENT_WEAPON_VISIBLE
- SET_PED_DROPS_INVENTORY_WEAPON
- SET_PED_DROPS_WEAPONS_WHEN_DEAD
- SET_PLAYER_PED_QUICK_SWAP_WEAPON_BY_GUID
- SET_AMMO_IN_CLIP
- SET_CURRENT_PED_VEHICLE_WEAPON
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.