GetPlayerServerId for my own ped is always 0?

Hi.

I’m using GetPlayerServerId native on client side for nearby players, but when I was to involve myself too inside the same loop, it always shows 0 instead of my actual server id.

Is there a way to get my own ID client side? Something like

GetPlayerServerId(PlayerPedId()))

Hey.

You need to use the PlayerId(), not the PlayerPedId(), in order to get the player serverId.

print( GetPlayerServerId(PlayerId())) )