Garry's Mod Wiki

Entity:ViewModelIndex

  number Entity:ViewModelIndex()

Description

Returns the index of this view model, it can be used to identify which one of the player's view models this entity is.

Returns

1 number
View model index, ranges from 0 to 2, nil if the entity is not a view model