Garry's Mod Wiki

player_manager.TranslatePlayerModel

  string player_manager.TranslatePlayerModel( string shortName )

Description

Returns the valid model path for a simplified name.

Will default to "models/player/kleiner.mdl" if given player model does not exist.

Arguments

1 string shortName
The short name of the model.

Returns

1 string
The valid model path for the short name.

Example

Print the valid model path for "Alyx".

Output: Console outputs: "models/player/alyx.mdl"