Garry's Mod Wiki

util.RemovePData

  util.RemovePData( string steamID, string name )

Description

Removes persistent data of an offline player using their SteamID.

See also Player:RemovePData for a more convenient version of this function for online players, util.SetPData and util.GetPData for the other accompanying functions.

This function internally uses util.SteamIDTo64, it previously utilized Player:UniqueID which can cause collisions (two or more players sharing the same PData entry). This function now tries to remove both old and new entries.

Arguments

1 string steamID
SteamID of the player to remove data of, in the STEAM_0:0:0 format. See Player:SteamID.
2 string name
Variable name to remove