# 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="/files/YVpmdRQjWCpPzolFMUBN" 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="/files/NBzw94pe7aAPOVbfVy79" alt=""><figcaption></figcaption></figure>

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


---

# 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://docs.vames-store.com/assets/vms_cityhall/guides/generate-ssn-for-players.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.
