Skip to content

Commit

Permalink
Update SetWeaponDamageModifier.md (citizenfx#396)
Browse files Browse the repository at this point in the history
* Update SetWeaponDamageModifier.md

* Update SetWeaponDamageModifier.md

* Update SetWeaponDamageModifier.md

* Update SetWeaponDamageModifier.md

Co-authored-by: Technetium <[email protected]>
  • Loading branch information
LiamDormon and technetium-cfx authored Dec 4, 2020
1 parent 0e491c9 commit 4854307
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions WEAPON/SetWeaponDamageModifier.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,21 @@ aliases: ["0x4757F00BC6323CFE"]

```c
// 0x4757F00BC6323CFE
void _SET_WEAPON_DAMAGE_MODIFIER(Hash weaponHash, float damageAmount);
void _SET_WEAPON_DAMAGE_MODIFIER(Hash weaponHash, float damageMultiplier);
```
Changes the weapon damage output by the given multiplier value. Must be run every frame.
## Parameters
* **weaponHash**:
* **damageAmount**:
* **weaponHash**: Hash of the weapon
* **damageMultiplier**: Damage Multiplier
## Example
```lua
Citizen.CreateThread(function()
while true do
SetWeaponDamageModifier(GetHashKey("WEAPON_CARBINERIFLE"), 0.8)
Wait(0)
end
end)
```

0 comments on commit 4854307

Please sign in to comment.