The Lab
WEAPON native

_GET_WEAPON_REPLACED_HASH

returns Hash1 parambuild 1207

Based on its name and signature, here is our best reading:

Returns a hash of a weapon that was replaced, optionally clearing it. Exact behavior is not documented.

Signature

C
Hash _GET_WEAPON_REPLACED_HASH(BOOL clear); // 0x9F0E1892C7F228A8 b1207

Parameters

#NameType
1clearBOOL

Facts

Facts about _GET_WEAPON_REPLACED_HASH
Name
_GET_WEAPON_REPLACED_HASH
Hash
0x9F0E1892C7F228A8
Namespace
Returns
Hash
Game build
1207

Examples

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

Lua
local hash = Citizen.InvokeNative(0x9F0E1892C7F228A8, -- _GET_WEAPON_REPLACED_HASH
  false, -- BOOL clear
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
const hash = Citizen.invokeNative("0x9F0E1892C7F228A8", // _GET_WEAPON_REPLACED_HASH
  false, // BOOL clear
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x9F0E1892C7F228A8, // _GET_WEAPON_REPLACED_HASH
  false // BOOL clear
);
All WEAPON natives

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