The Lab
WEAPON native

SET_PED_AMMO_BY_TYPE

returns void3 paramsbuild 1207

Sets the ped's ammo of type ammoType to ammo.

Signature

C
void SET_PED_AMMO_BY_TYPE(Ped ped, Hash ammoType, int ammo); // 0x5FD1E1F011E76D7E b1207

Parameters

#NameType
1pedPed
2ammoTypeHash
3ammoint

Facts

Facts about SET_PED_AMMO_BY_TYPE
Name
SET_PED_AMMO_BY_TYPE
Hash
0x5FD1E1F011E76D7E
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x5FD1E1F011E76D7E, -- SET_PED_AMMO_BY_TYPE
  PlayerPedId(), -- Ped ped
  GetHashKey("name"), -- Hash ammoType
  0 -- int ammo
)
JavaScript
Citizen.invokeNative("0x5FD1E1F011E76D7E", // SET_PED_AMMO_BY_TYPE
  PlayerPedId(), // Ped ped
  GetHashKey("name"), // Hash ammoType
  0 // int ammo
);
C#
Function.Call((Hash)0x5FD1E1F011E76D7E, // SET_PED_AMMO_BY_TYPE
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("name"), // Hash ammoType
  0 // int ammo
);
All WEAPON natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.