Skip to content

Roleplay Playermodel List Setup

Vuthakral edited this page Apr 4, 2023 · 1 revision

Roleplay Playermodel List

The Draconic Base has a natively built-in extended playermodel menu, with support for all of the gmod standards. It also comes with a way to make it display only certain models as options for roleplay-oriented servers to allow only a limited selection of models for their role.

Setting the playermodel list

To set a playermodel list, using DarkRP as an example, you would put this codeblock in the job's spawn lua:

local models = {
   "models/playermodel1.mdl",
   "models/playermodel2.mdl"
}
DRC:SetRoleplayPlayermodels(PLAYERENTITY, models)

When you set this list, for the player defined the Draconic Menu will from then on only show those specified models. Please note this list does NOT automatically reset upon respawn, and you must run the clear command on the player to restore the normal playermodel list functionality.

Clearing the playermodel list

DRC:ClearRoleplayerPlayermodels(PLAYERENTITY)
Clone this wiki locally