Weapon::setEnableLocalOutgoingDamage: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with " {{ClientsideJsFunction}} {{JSContainer| ===Required Params=== *'''toggle:''' {{RageType|boolean}} ===Return value=== *''' {{RageType|void}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.weapon.setEnableLocalOutgoingDamage(toggle) </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Weapon_s_function_c}} Category:Clientside API Category:TODO: Example")
 
No edit summary
 
Line 1: Line 1:


{{ClientsideJsFunction}}
{{ClientsideJsFunction}}
Enables the 'outgoingDamage' event for this client.
Needs to be called in the 'playerReady' event.
{{JSContainer|
{{JSContainer|
===Required Params===
===Required Params===
*'''toggle:''' {{RageType|boolean}}
*'''toggle:''' {{RageType|boolean}}
Line 17: Line 18:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
//todo
mp.events.add("playerReady", () => mp.game.weapon.setEnableLocalOutgoingDamage(true));
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Latest revision as of 01:35, 18 August 2024

Client-Side
Function

 JavaScript



Enables the 'outgoingDamage' event for this client. Needs to be called in the 'playerReady' event.

JavaScript Syntax

Required Params

  • toggle: boolean

Return value

  • void

Syntax

mp.game.weapon.setEnableLocalOutgoingDamage(toggle)

Example

mp.events.add("playerReady", () => mp.game.weapon.setEnableLocalOutgoingDamage(true));


See also