[HELP] ID issue


My crew are developing a ESX based server, and we thought that using id’s to identify will help us to manage players easier… with GetPlayerServerId( ) code… but…
*Everytime a player restarts, changes it’s ID automatically to the next empty value
considering we are 3, (so id = 1,2,3), if id=1 restart their client, it connects with id=4, not 1 (same player, same steam, spawn with same loadout etc…)

Is there a way to use GetPlayerServerId( ) and catch id info from ‘users’ table in my database??! i created a column called “id” with primary key and auto_increment, it saves the info that i need…

bc im not familiar with mysql-async code, i dont know how to implement this in a scoreboard or idoverhead scripts.