Garry's Mod Wiki

Garry's Mod Wiki

  GM:PlayerSetHandsModel( Player ply, Entity ent )

Description

Called whenever view model hands needs setting a model. By default this calls PLAYER:GetHandsModel and if that fails, sets the hands model according to his player model.

Arguments

1 Player ply
The player whose hands needs a model set
2 Entity ent
The hands to set model of

Example

Sets the players hands to the model's hands.

function GM:PlayerSetHandsModel( ply, ent ) local simplemodel = player_manager.TranslateToPlayerModelName(ply:GetModel()) local info = player_manager.TranslatePlayerHands(simplemodel) if info then ent:SetModel(info.model) ent:SetSkin(info.skin) ent:SetBodyGroups(info.body) end end

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 four times a day. Edits and history are not available.

Last Parsed: Loading...