Garry's Mod Wiki

PLAYER:GetHandsModel

PLAYER:GetHandsModel

  table PLAYER:GetHandsModel()

Description

Called on player spawn to determine which hand model to use

Returns

1 table
A table containing info about view model hands model to be set. See examples.

Example

Default action of player_default class

function PLAYER:GetHandsModel() -- return { model = "models/weapons/c_arms_cstrike.mdl", skin = 1, body = "0100000" } local playermodel = player_manager.TranslateToPlayerModelName( self.Player:GetModel() ) return player_manager.TranslatePlayerHands( playermodel ) end
Output: View model hands model is chosen according to player's player model.

Special Pages


Wikis

?

Render Time: 60ms

DB GetPage 43
Generate Html 2
SaveChanges (1) 6
Render Body 0
Render Sidebar 6