The Lab
WEAPON native

_IS_AMMO_SILENT_2

returns BOOL1 parambuild 1207

Alternative check for whether the ammo type ammoHash is silent.

Signature

C
BOOL _IS_AMMO_SILENT_2(Hash ammoHash); // 0x7EFACC589B98C488 b1207

Parameters

#NameType
1ammoHashHash

Facts

Facts about _IS_AMMO_SILENT_2
Name
_IS_AMMO_SILENT_2
Hash
0x7EFACC589B98C488
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(0x7EFACC589B98C488, -- _IS_AMMO_SILENT_2
  GetHashKey("name") -- Hash ammoHash
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x7EFACC589B98C488", // _IS_AMMO_SILENT_2
  GetHashKey("name"), // Hash ammoHash
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x7EFACC589B98C488, // _IS_AMMO_SILENT_2
  (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.