The Lab
WEAPON native

_SET_WEAPON_DAMAGE

returns void3 paramsbuild 1207

Sets the visual damage level of the weapon object.

Signature

C
void _SET_WEAPON_DAMAGE(Object weaponObject, float level, BOOL p2); // 0xE22060121602493B b1207

Parameters

#NameType
1weaponObjectObject
2levelfloat
3p2BOOL

Facts

Facts about _SET_WEAPON_DAMAGE
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.

Lua
Citizen.InvokeNative(0xE22060121602493B, -- _SET_WEAPON_DAMAGE
  0, -- Object weaponObject
  0.0, -- float level
  false -- BOOL p2
)
JavaScript
// 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
);
C#
Function.Call((Hash)0xE22060121602493B, // _SET_WEAPON_DAMAGE
  0, // Object weaponObject
  0.0f, // float level
  false // BOOL p2
);
All WEAPON natives

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