_SET_WEAPON_LEVEL_THRESHOLD
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
void _SET_WEAPON_LEVEL_THRESHOLD(Object weaponObject, float threshold); // 0xD4071EFC83794B2F b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | weaponObject | Object |
| 2 | threshold | float |
Facts
| 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.
Citizen.InvokeNative(0xD4071EFC83794B2F, -- _SET_WEAPON_LEVEL_THRESHOLD
0, -- Object weaponObject
0.0 -- float threshold
)// 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
);Function.Call((Hash)0xD4071EFC83794B2F, // _SET_WEAPON_LEVEL_THRESHOLD
0, // Object weaponObject
0.0f // float threshold
);Related WEAPON natives
- _SET_WEAPON_DAMAGE
- _SET_WEAPON_DEGRADATION
- _SET_WEAPON_DIRT
- _SET_WEAPON_HOLSTERED
- _SET_WEAPON_SCALE
- _SET_WEAPON_SOOT
- _SET_AMMO_TYPE_FOR_PED_WEAPON
- _SET_AMMO_TYPE_FOR_PED_WEAPON_INVENTORY
- _SET_FORCE_CURRENT_WEAPON_INTO_COCKED_STATE
- _SET_PED_WEAPON_ATTACH_POINT_VISIBILITY
- _SET_VEHICLE_WEAPON_HEADING_LIMITS
- _SET_VEHICLE_WEAPON_HEADING_LIMITS_2
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.