SET_PLAYER_WEAPON_DAMAGE_MODIFIER
This modifies the damage value of your weapon.
Hash
0x94D529F7B73D7A85Runtime name
SetPlayerWeaponDamageModifierNamespacePLAYER
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xCE07B9F7817AADA3Signature
void SET_PLAYER_WEAPON_DAMAGE_MODIFIER(Player player, float modifier);Parameters
| Name | Type | Description |
|---|---|---|
player | Player | — |
modifier | float | — |
Returns void
Description
This modifies the damage value of your weapon. Whether it is a multiplier or base damage is unknown.
Usage
SetPlayerWeaponDamageModifier(player, modifier)
-- always works, by hash
Citizen.InvokeNative(0x94D529F7B73D7A85, player, modifier)JavaScript and C#
SetPlayerWeaponDamageModifier(player, modifier);
// by hash
Citizen.invokeNative('0x94D529F7B73D7A85', player, modifier + 0.0000001);Function.Call((Hash)0x94D529F7B73D7A85, player, modifier);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.