Garry's Mod Wiki

player_manager.TranslateToPlayerModelName

  string player_manager.TranslateToPlayerModelName( string model )

Description

Returns the simplified name for a valid model path of a player model.

Opposite of player_manager.TranslatePlayerModel.

Arguments

1 string model
The model path to a player model

Returns

1 string
The simplified name for that model