Garry's Mod Wiki


  DModelSelect:SetModelList( table models, string convar, boolean dontSort, boolean dontCallListConVars )


Called to set the list of models within the panel element.


1 table models
Each key is a model path, the value is a kay-value table where they key is a convar name and value is the value to set to that convar.
2 string convar
ConVar to set when a model from this list is selected.
3 boolean dontSort
Do not sort the list. (by the Model member)
4 boolean dontCallListConVars
If set, only the convar from the 2nd argument will be set, not individual convars from the models list.