Garry's Mod Wiki

Revision Difference

Player:SetDeaths#515778

<function name="SetDeaths" parent="Player" type="classfunc"> <description>Sets a player's death count</description> <realm>Server</realm> <args> <arg name="deathcount" type="number">Number of deaths (positive or negative)</arg> </args> </function> <example> <description>⤶ Sets the deaths of player 1 to 5⤶ <description>Sets the deaths of player 1 to 5⤶ ``` ⤶ | Code = player.GetByID( 1 ):SetDeaths( 5 )⤶ | Output = None⤶ </description>⤶ <code>player.GetByID( 1 ):SetDeaths( 5 )</code>⤶ <output>None⤶ ``` ⤶ </description>⤶ </output>⤶ </example>