> ## Documentation Index
> Fetch the complete documentation index at: https://docs.virusstudio.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Client Exports

> Client-side exports for reading the local player's permanent ID.

All client exports are called with colon syntax: `exports.vrs_permanentid:Fn(...)`.

## GetMyPermanentId

Returns the local player's permanent ID.

```lua theme={null}
exports.vrs_permanentid:GetMyPermanentId()
```

**Returns:** `number | nil`

## Statebags

Read any online player's permanent ID directly from their statebag, no export required.

```lua theme={null}
Player(serverId).state.vrs_pid       -- number | nil
Player(serverId).state.vrs_pid_name  -- character name | nil
```

<Tip>
  Statebags are the recommended path for HUDs, scoreboards, and nameplates. They replicate automatically and do not require a round-trip to the server.
</Tip>
