The Lab
WEAPON native

_EXPLODE_PED_AMMO_TYPE

returns BOOL2 paramsbuild 1207

Detonates the ped's ammo of type ammoHash, such as placed explosives, and returns true on success.

Signature

C
BOOL _EXPLODE_PED_AMMO_TYPE(Ped ped, Hash ammoHash); // 0x44C8F4908F1B2622 b1207

Parameters

#NameType
1pedPed
2ammoHashHash

Facts

Facts about _EXPLODE_PED_AMMO_TYPE
Name
_EXPLODE_PED_AMMO_TYPE
Hash
0x44C8F4908F1B2622
Namespace
Returns
BOOL
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0x44C8F4908F1B2622, -- _EXPLODE_PED_AMMO_TYPE
  PlayerPedId(), -- Ped ped
  GetHashKey("name") -- Hash ammoHash
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x44C8F4908F1B2622", // _EXPLODE_PED_AMMO_TYPE
  PlayerPedId(), // Ped ped
  GetHashKey("name"), // Hash ammoHash
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x44C8F4908F1B2622, // _EXPLODE_PED_AMMO_TYPE
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("name") // Hash ammoHash
);
All WEAPON natives

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