Skip to main content

Weapon::setSimulateLocalDamageImpacts

Not available on SYNC MP yet

This member is part of the RAGE:MP API but SYNC MP does not implement it yet (Client-side JavaScript). Calling it does nothing or throws.

Client-side function

JavaScript​

Summary​

Enables or disables the simulation of local damage impacts for weapons.

Syntax​

mp.game.weapon.setSimulateLocalDamageImpacts(doSimulate);

Required Parameters​

  • doSimulate: bool - Set to true to enable simulation, or false to disable.

Return Value​

  • undefined

Example​

// Enable local damage impact simulation
mp.game.weapon.setSimulateLocalDamageImpacts(true);
mp.gui.chat.push("Local damage impacts simulation is now enabled.");