player_manager.TranslatePlayerModel

From Garry's Mod
Jump to: navigation, search
 player_manager.TranslatePlayerModel( )

Contents

Description

Returns the valid model path for a simplified name.

Arguments

string shortName

The short name of the model.

Returns

string

The valid model path for the short name.

Examples

Example

Print the valid model path for "Alyx".

print(player_manager.TranslatePlayerModel("alyx"))

Output:

Console outputs: "models/player/alyx.mdl"
Personal tools
Navigation