In my server code, I am calling GetPlayerIdentifier and I am unable to get a steamID. I have my steam linked to my FiveM and when I use GetPlayerIdentifier I am only able to get: license, discord, and IP (Identifiers 0, 1, and 2).
Feel like I am missing something here but I am stumped.
Here is the code I am working with:
on('announce', (param) => {
const playerId = GetPlayerIdentifier(source, 0) // 0 is my license, 1 is discord, 2 is IP.
if(IsPlayerAceAllowed(playerId, 'administrator')){
// admin code
} else {
// not an admin
}
});
Thanks!