util.SetPData

From Garry's Mod
Jump to: navigation, search
 util.SetPData( )

Contents

Description

Sets PData for offline player using his SteamID

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 steamID

SteamID of the player

Arguments

string name

Variable name to store the value in

Arguments

any value

The value to store
Personal tools
Navigation