---
description: This page describes how to add a new role into the game
---

# 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.

![](https://3495811604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F95OhrYYgKj0eUTnfM9sL%2Fuploads%2FXzODww6JZgVAkH33tNVg%2Fimage.png?alt=media\&token=260b3593-0d49-4f93-a43a-d76725324f0d)

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.

![](https://3495811604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F95OhrYYgKj0eUTnfM9sL%2Fuploads%2FAxx7CHvdtRS30SxiDZbw%2Fimage.png?alt=media\&token=cf3bf4db-e5f6-444f-8dfa-47d6340644d6)

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.

![](https://3495811604-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F95OhrYYgKj0eUTnfM9sL%2Fuploads%2F8pXjkOktRkWBfsT6H9Vo%2Fimage.png?alt=media\&token=21bcc919-3451-4b27-9f11-91b5d24ca26a)

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.
