Garry's Mod Wiki

Garry's Mod Wiki

  Entity Player:GetViewModel( number index = 0 )

Description

Returns the player's view model entity by the index. Each player has 3 view models by default, but only the first one is used.

To use the other viewmodels in your SWEP, see Entity:SetWeaponModel.

In the Client realm, other players' viewmodels are not available unless they are being spectated.

Arguments

1 number index = 0
optional index of the view model to return, can range from 0 to 2

Returns

1 Entity
The view model entity

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...