brave 29 Share Posted June 7, 2021 Hello, I'm trying to get my local players index (aka chat pid), but it's always returning -1. Does anyone know if this a bug or am I doing it wrong? Players.localPlayer().getIndex(); Link to comment Share on other sites More sharing options...
Pandemic 2702 Share Posted June 7, 2021 I think someone else tried to grab the "chat pid" but I don't believe it was the index we have. If you really want the index (which again I don't know if it's what you're really looking for) you'd need to use Client#getPlayers and find the local player in there, and that would be the index we have. Link to comment Share on other sites More sharing options...
brave 29 Author Share Posted June 7, 2021 32 minutes ago, Pandemic said: I think someone else tried to grab the "chat pid" but I don't believe it was the index we have. If you really want the index (which again I don't know if it's what you're really looking for) you'd need to use Client#getPlayers and find the local player in there, and that would be the index we have. Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.