Garry's Mod Wiki

Revision Difference

util.SetPData#547172

<function name="SetPData" parent="util" type="libraryfunc"> <description>Sets PData for offline player using their SteamID <description>Sets PData for offline player using his 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> <realm>Shared and Menu</realm> <file line="347-L356">lua/includes/extensions/util.lua</file> <args> <arg name="steamID" type="string">SteamID of the player</arg> <arg name="name" type="string">Variable name to store the value in</arg> <arg name="value" type="any">The value to store</arg> <arg name="steamID" type="string">SteamID of the player.</arg> <arg name="name" type="string">Variable name to store the value in.</arg> <arg name="value" type="any">The value to store.</arg> </args> </function>