Garry's Mod Wiki

Revision Difference

player_manager.AllValidModels#515782

<function name="AllValidModels" parent="player_manager" type="libraryfunc"> <description>Returns the entire list of valid player models.</description> <realm>Shared</realm> </function> <example> <description>⤶ Store the list of valid player models in a local variable, and print the valid model path for "Alyx"⤶ ```⤶ ⤶ | Code =⤶ <description>Store the list of valid player models in a local variable, and print the valid model path for "Alyx"⤶ ``` </description>⤶ <code>⤶ local models = player_manager.AllValidModels() print(models["alyx"]) </code>⤶ <output>Console outputs: "models/player/alyx.mdl"⤶ ``` ⤶ | Output = Console outputs: "models/player/alyx.mdl"⤶ ```⤶ ⤶ </description>⤶ </output>⤶ </example>