Garry's Mod Wiki

Revision Difference

util.GetPData#552596

<function name="GetPData" parent="util" type="libraryfunc"> <description>Gets PData of an offline player using their SteamID⤶ <warning>This function internally uses <page>Player:UniqueID</page>, which can cause collisions (two or more players sharing the same PData entry). It's recommended that you don't use it. See the related wiki page for more information.</warning></description>⤶ <description>Gets persistent data of an offline player using their SteamID.⤶ ⤶ See also <page>Player:GetPData</page> for a more convenient version of this function for online players, <page>util.RemovePData</page> and ⤶ <page>util.SetPData</page> for the other accompanying functions.⤶ ⤶ <warning>This function internally uses <page>Player:UniqueID</page>, which can cause collisions (two or more players sharing the same PData entry). It's recommended that you don't use it. See the related wiki page for more information.</warning></description>⤶ <realm>Shared and Menu</realm> <file line="333-L345">lua/includes/extensions/util.lua</file> <args> <arg name="steamID" type="string">SteamID of the player</arg>⤶ <arg name="steamID" type="string">SteamID of the player, in the `STEAM_0:0:0` format. See <page>Player:SteamID</page>.</arg>⤶ <arg name="name" type="string">Variable name to get the value of</arg> <arg name="default" type="string">The default value, in case there's nothing stored</arg> </args> <rets> <ret name="" type="string">The stored value</ret> </rets> </function>