Garry's Mod Wiki

DModelSelectMulti:AddModelList

  DModelSelectMulti:AddModelList( string name, table models, string convar, boolean dontSort, boolean dontCallListConVars )

Description

Adds a new tab of models.

Arguments

1 string name
Name of the tab to add.
2 table models
Models list for this tab. See DModelSelect:SetModelList.
3 string convar
ConVar to set when a model from this list is selected.
4 boolean dontSort
Do not sort the list. (by the Model member)
5 boolean dontCallListConVars
If set, only the convar from the 2nd argument will be set, not individual convars from the models list.