Generate SSN for current players
Last updated
Last updated
This section is for ESX users only!
If you have VMS City Hall skip this, and go to Generate SSN for current players
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.
Go to vms_documentsv2/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.
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
.
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.
When the process is complete, you will get this message in your console:
This means that the generation of SSNs has been completed, restart the server!