Garry's Mod Wiki

player_manager.AddValidHands

player_manager.AddValidHands( string name, string model, number skin, string bodygroups )

Description

Assigns view model hands to player model.

Arguments

1 string name
Player model name
2 string model
Hands model
3 number skin
Skin to apply to the hands
4 string bodygroups
Bodygroups to apply to the hands

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

Page Links


Special Pages


Wikis

?

Render Time: 44ms

DB GetPage 10
Generate Html 11
SaveChanges 15
Render Body 0
Render Sidebar 6