The Lab
WEAPON native

_SET_WEAPON_LEVEL_THRESHOLD

returns void2 paramsbuild 1207

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

Sets a level threshold on the weapon object. Exact meaning is not documented.

Signature

C
void _SET_WEAPON_LEVEL_THRESHOLD(Object weaponObject, float threshold); // 0xD4071EFC83794B2F b1207

Parameters

#NameType
1weaponObjectObject
2thresholdfloat

Facts

Facts about _SET_WEAPON_LEVEL_THRESHOLD
Name
_SET_WEAPON_LEVEL_THRESHOLD
Hash
0xD4071EFC83794B2F
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(0xD4071EFC83794B2F, -- _SET_WEAPON_LEVEL_THRESHOLD
  0, -- Object weaponObject
  0.0 -- float threshold
)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xD4071EFC83794B2F", // _SET_WEAPON_LEVEL_THRESHOLD
  0, // Object weaponObject
  0.0 // float threshold
);
C#
Function.Call((Hash)0xD4071EFC83794B2F, // _SET_WEAPON_LEVEL_THRESHOLD
  0, // Object weaponObject
  0.0f // float threshold
);
All WEAPON natives

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