setPlayerWeaponDamageModifier
SET_PLAYER_WEAPON_DAMAGE_MODIFIER0xCE07B9F7817AADA3The GTA V native SET_PLAYER_WEAPON_DAMAGE_MODIFIER of the PLAYER namespace, as LS:MP client scripts call it: the global function setPlayerWeaponDamageModifier, in JavaScript and in Lua.
setPlayerWeaponDamageModifier(player: Player, modifier: number): voidsetPlayerWeaponDamageModifier(player: Player, modifier: number)Usage
JavaScript
setPlayerWeaponDamageModifier(player, modifier);Lua
setPlayerWeaponDamageModifier(player, modifier)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
player | Player | number | integer |
modifier | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
This modifies the damage value of your weapon. Whether it is a multiplier or base damage is unknown.
Based on tests, it is unlikely to be a multiplier.
modifier's min value is 0.1
Reference
- Namespace
- Player PLAYER
- In the game
void SET_PLAYER_WEAPON_DAMAGE_MODIFIER(Player player, float modifier)- Hash
0xCE07B9F7817AADA3