_SET_WEAPON_DAMAGE
Sets the visual damage level of the weapon object.
Signature
void _SET_WEAPON_DAMAGE(Object weaponObject, float level, BOOL p2); // 0xE22060121602493B b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | weaponObject | Object |
| 2 | level | float |
| 3 | p2 | BOOL |
Facts
| Name | _SET_WEAPON_DAMAGE |
|---|---|
| Hash | 0xE22060121602493B |
| 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(0xE22060121602493B, -- _SET_WEAPON_DAMAGE
0, -- Object weaponObject
0.0, -- float level
false -- BOOL p2
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xE22060121602493B", // _SET_WEAPON_DAMAGE
0, // Object weaponObject
0.0, // float level
false // BOOL p2
);Function.Call((Hash)0xE22060121602493B, // _SET_WEAPON_DAMAGE
0, // Object weaponObject
0.0f, // float level
false // BOOL p2
);Related WEAPON natives
- _SET_WEAPON_DEGRADATION
- _SET_WEAPON_DIRT
- _SET_WEAPON_HOLSTERED
- _SET_WEAPON_LEVEL_THRESHOLD
- _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.