Garry's Mod Wiki

player_manager.TranslatePlayerModel

  string player_manager.TranslatePlayerModel( string shortName )

Description

Returns the valid model path for a simplified name.

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"