You can just call GetPlayerIdentifier() like for any other native serverside

Or you could check out this snippet by (i think) @throwarray

Orginal reply above is outdated, nowadays there’s getPlayerIdentifiers in the v8 runtime.

const identifiers = getPlayerIdentifiers(source)

console.log(identifiers)
// prints: 
// [
//	 "discord:241225897389064192",
//	 "fivem:72150",
//	 "ip:127.0.0.1"
// ]
1 Like