WeaponClient

setWeaponEffectDurationModifier

SET_WEAPON_EFFECT_DURATION_MODIFIER0xE6D2CEDD370FF98E

The GTA V native SET_WEAPON_EFFECT_DURATION_MODIFIER of the WEAPON namespace, as LS:MP client scripts call it: the global function setWeaponEffectDurationModifier, in JavaScript and in Lua.

SignatureJavaScript
setWeaponEffectDurationModifier(p0: Hash, p1: number): void
SignatureLua
setWeaponEffectDurationModifier(p0: Hash, p1: number)

Usage

JavaScript
setWeaponEffectDurationModifier(p0, p1);
Lua
setWeaponEffectDurationModifier(p0, p1)

Parameters

ParameterTypeJavaScriptLua
p0Hashnumberinteger
p1floatnumbernumber

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.

ex, setWeaponEffectDurationModifier(joaat("vehicle_weapon_mine_slick"), 1.0);

Reference

Namespace
Weapon WEAPON
In the game
void SET_WEAPON_EFFECT_DURATION_MODIFIER(Hash p0, float p1)
Hash
0xE6D2CEDD370FF98E
Introduced
Game build 2372 legacy numbering

Open in the interactive natives reference