# Generate SSN for Players

***

{% hint style="danger" %}

## READ IT!

**This section is only for ESX users!**
{% endhint %}

If you have your server already started and you already have players registered, you need to generate SSNs for your players. Below you will find the points you need to go through to do this.

1. ### Adjust SSN format

Go to vms\_cityhall/server/modules/ssn.lua and in the first line you have to customize your birth date format stored on your server.

By default, the date of birth in ESX is stored in the column **dateofbirth**.

<figure><img src="https://3701050178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6y0J5nnTjSyc65fbCvIU%2Fuploads%2Fwqq1xdXjqj7Xak7KgDW8%2Fimage.png?alt=media&#x26;token=4d7b3fa6-72ba-4062-bfef-602298295737" alt=""><figcaption><p><em><strong>vms_cityhall/server/modules/ssn.lua</strong></em></p></figcaption></figure>

3. ### Generate SSN's

{% hint style="warning" %}
Run the server but in such a way that players cannot join it, you can temporarily set in your server.cfg the number of slots to 0 - `sv_maxclients 0`.
{% endhint %}

After starting the server, type the command **`_generatessn`**, then for each registered user in the table will create SSNs based on date of birth and gender.

4. ### Final

When the process is complete, you will get this message in your console:

<figure><img src="https://3701050178-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6y0J5nnTjSyc65fbCvIU%2Fuploads%2F6mSrP5ZxUukzRBx9Bzr9%2Fimage.png?alt=media&#x26;token=34b4d76b-9a0b-48d7-8bb0-5f860f65ba3d" alt=""><figcaption></figcaption></figure>

This means that the generation of SSNs has been completed, restart the server!
