Player.GetPData
From GMod Wiki
| Function | |
| Syntax |
Player:GetPData( String name [, Var default ] ) Where is this used? |
| Description: | |
| Gets a persistent data value from a player. | |
| Returns: | String |
| Part of Library: | Player |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.GetPData]Player.GetPData [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Only Persistent Data set clientside can be accessed from the client. This is also true with serverside PData.
- PData is saved to sv.db or cl.db in the GMod base directory, depending on whether used serverside/clientside.
- If the PData is not defined, then the function will return nil or default (the 2nd argument passed).