Garry's Mod Wiki

Garry's Mod Wiki

  player_manager.AddValidHands( string name, string model, number skin = 0, string bodygroups = "0000000", boolean matchBodySkin = false )

Description

Assigns view model hands to player model.

Arguments

1 string name
Player model name
2 string model
Hands model
3 number skin = 0
Skin to apply to the hands
4 string bodygroups = "0000000"
Bodygroups to apply to the hands. See Entity:SetBodyGroups for help with the format.
5 boolean matchBodySkin = false
If set to true, the skin of the hands will be set to the skin of the playermodel. This is useful when player models have multiple user-selectable skins.

Example

Adds CS:S hands for hostage playermodels

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" )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...