Player/RemovePData

From Garry's Mod
Jump to: navigation, search
 Player:RemovePData( )

Contents

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 library.

WARNING

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

string key

Key to remove

Returns

boolean

true is succeeded, false otherwise

Examples

Example

Deletes the key "money" from player 1

player.GetByID( 1 ):RemovePData( "money" )


Personal tools
Navigation