player_manager.AddValidModel
player_manager.AddValidModel( string name, string model, string niceName = nil, string category = nil )
Description
Associates a simplified name with a path to a valid player model.
This is used to list all available player model in the Player Model Selector (via player_manager.AllValidModels), and to prevent players from being able to set any model as the player model.
Arguments
1 string name
Short, simplified, unique player model name. (something like
"combine" for the Combine Soldier player model)3 string niceName = nil
A user-friendly name of this model, such as
"Combine Soldier".
Can be a localization string starting with "#".
This was recently added in version (2026.08.14). It might only be available on the Dev Branch right now.
4 string category = nil
A user-friendly category name for this model, such as
"Half-Life 2".
If not set, the model will appear in the "Other" category (localized to the player's language).
Can be a localization string starting with "#".
This was recently added in version (2026.08.14). It might only be available on the Dev Branch right now.
Garry's Mod
Rust
Steamworks
Wiki Help