Garry's Mod Wiki

Player:RemovePData

boolean Player:RemovePData( string key )

Description

Removes a Player Data key-value pair from the SQL database. (sv.db when called on server, cl.db when called on client)

Internally uses the sql.

This function internally uses Player:UniqueID, 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.

Arguments

1 string key
Key to remove

Returns

1 boolean
true is succeeded, false otherwise

Example

Deletes the key "money" from player 1

Entity( 1 ):RemovePData( "money" )

Page Links


Special Pages


Wikis

?

Render Time: 78ms

DB GetPage 39
Generate Html 4
SaveChanges (1) 20
Render Body 0
Render Sidebar 13