Garry's Mod Wiki

Revision Difference

PropSelect:AddModelEx#568431

<function name="AddModelEx" parent="PropSelect" type="panelfunc"> <description>Adds a new model to the selection list.</description> <realm>Client</realm> <args> <arg name="value" type="string">The "value" for this model, which is used to set the <page>ContextBase:SetConVar</page>.</arg> <arg name="model" type="string">Model path, **including** `models/` and `.mdl`.</arg> <arg name="skin" type="number">The skin number for this model. It will **not** be set to the convar, use the value argument to track skin-model combos.</arg> </args> <rets>⤶ <ret name="" type="SpawnIcon">The created icon</ret>⤶ </rets>⤶ </function>