Garry's Mod Wiki

player_manager.AllValidModels

  table player_manager.AllValidModels()

Description

Returns the entire list of valid player models.

Returns

1 table
List of all valid player models.

Example

Store the list of valid player models in a local variable, and print the valid model path for "Alyx"

local models = player_manager.AllValidModels() print(models["alyx"])
Output: Console outputs: "models/player/alyx.mdl"