Garry's Mod Wiki

Revision Difference

player_manager.AddValidHands#512579

<function name="AddValidHands" parent="player_manager" type="libraryfunc">⤶ <description>Assigns view model hands to player model.</description>⤶ <realm>Shared</realm>⤶ <args>⤶ <arg name="name" type="string">Player model name</arg>⤶ <arg name="model" type="string">Hands model</arg>⤶ <arg name="skin" type="number">Skin to apply to the hands</arg>⤶ <arg name="bodygroups" type="string">Bodygroups to apply to the hands</arg>⤶ </args>⤶ </function>⤶ ⤶ <example>⤶ <description>Adds CS:S hands for hostage playermodels</description>⤶ <code>⤶ player_manager.AddValidHands( "hostage01", "models/weapons/c_arms_cstrike.mdl", 0, "10000000" )⤶ player_manager.AddValidHands( "hostage02", "models/weapons/c_arms_cstrike.mdl", 0, "10000000" )⤶ player_manager.AddValidHands( "hostage03", "models/weapons/c_arms_cstrike.mdl", 0, "10000000" )⤶ player_manager.AddValidHands( "hostage04", "models/weapons/c_arms_cstrike.mdl", 0, "10000000" )⤶ </code>⤶ ⤶ </example>