# Adding a new role

The first thing you need to do to create a new role is to go to **Assets/Content/Data/Roles**, either duplicate an existing role or right click and go **Create -> Roles -> RoleData**, name both the file and the "Role name" variable as the name of the role.

![](/files/eVRMWUHG1WMeEz4QntUO)

Role Name: the name of the role\
PDA Prefab: the PDA prefab that will be spawned in the player's inventory\
ID Card Prefab: the ID Card prefab that will be spawned inside the PDA\
Permissions: the list of permissions the ID Card will have.\
Loadout: the loadout that will populate the player's inventory at round start.

To create a new loadout go to **Assets/Content/Data/Roles/Loadouts**, right click and go **Create -> Roles -> Loadout**, there choose the items that will spawn in the player's inventory.

![](/files/NLEhPGNU0dpG1rO37DTY)

Check which slots will have items and then set which items will be spawned in the droplist that will show, remember that these items have to be registed in the AssetDatabase for them to appear in the droplist.

Now go to the **StartingRoles** asset in **Assets/Content/Data/Roles** and add the role to the list.

![](/files/lhXGEipDEnmdlaktZnTJ)

Drag the Role data into the slot and set how many players can play that role per round, setting it to zero means there is no limit.

Remember that it is possible to create ID Cards with permissions inside the game, which would effectively allow more people to play the same role that what is initially allowed, a player's role is dictated solely by their ID Card, which can be stolen or dumped.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ss3d.gitbook.io/systems/roles/adding-a-new-role.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
