# sam.Player.get\_pdata

> #### [**any**](https://wiki.facepunch.com/gmod/any) sam.Player.get\_pdata( [player](https://wiki.facepunch.com/gmod/player) ply,  [**any**](https://wiki.facepunch.com/gmod/any) **key,**  *(*[*optional*](https://sam.goobie.me/info-read/optional)*)* [**any**](https://wiki.facepunch.com/gmod/any) default )

## Description

Get persistent data for a player.

## Aguments

1. #### [player](https://wiki.facepunch.com/gmod/player) ply
2. #### [**any**](https://wiki.facepunch.com/gmod/any) **key**
3. #### *(*[*optional*](https://sam.goobie.me/info-read/optional)*)* [**any**](https://wiki.facepunch.com/gmod/any) default

   value to return if failed to retrieve the value.

## Returns

1. #### [**any**](https://wiki.facepunch.com/gmod/any)
