Player::setCanLosePropsOnDamage

From RAGE Multiplayer Wiki
Revision as of 10:56, 1 March 2024 by Shr0x (talk | contribs) (Created page with " {{ClientsideJsEvent}} Enable or disable the ability for entity to drop props when they're damaged. {{JSContainer| {{Parameters}} * '''enable''': {{RageType|boolean}} * '''p0''': {{RageType|Number}} {{Example}} <syntaxhighlight lang="javascript" style="width: 98%; background-color: #E4F1FE;"> mp.players.local.setCanLosePropsOnDamage(false, 0); </syntaxhighlight> }} ==See also== {{Player_function_c}} Category:Clientside API")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Event

 JavaScript



Enable or disable the ability for entity to drop props when they're damaged.

JavaScript Syntax

Parameters

  • enable: boolean
  • p0: Number

Example

mp.players.local.setCanLosePropsOnDamage(false, 0);


See also