Making pointshop points come be displayed in loading screen

Ok so im trying to make it so whenever someone joins my server their current pointshop points come up in the loading screen.

I have Undefined’s pointshop mysql setup and working, but im having trouble retrieving the clients unique id to then go query into my mysql database, to then find their points…

Idk if theres a web api page on this to find clients unique id (im calling it that because in the pointshop database, theres a column (uniqueid) so im guessing i have to determin that to continue the…

if (isset($UniqueID)) {
$con=mysqli_connect(SQL_HOST, SQL_USER, SQL_PASS, SQL_DB);
// Check connection
if (mysqli_connect_errno())
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
$result = mysqli_query($con,"SELECT * FROM pointshop_data
WHERE uniqueid='$UniqueID'");
while($row = mysqli_fetch_array($result))
  echo $row['points'];

But yet is need something to = $UniqueId i just dont know how to determin that, like pointshop does.