Skip to content

GetLocalPlayerIndex ​

Retrieves the index of the local player.


GetLocalPlayerIndex()number ​

Returned:

  • number - The index of the local player. If local player is not exists, -1 is returned.