Garry's Mod Wiki

Player:UniqueIDTable

Player:UniqueIDTable

table Player:UniqueIDTable( any key )

Description

Returns a table that will stay allocated for the specific player between connects until the server shuts down. Note, that this table is not synchronized between client and server.

Arguments

1 any key
Unique table key.

Returns

1 table
The table that contains any info you have put in it.

Example

Example usage

local table = Entity( 1 ):UniqueIDTable( "mytable" ) table.MyValue = "test" // Somewhere else local table = Entity( 1 ):UniqueIDTable( "mytable" ) print( table.MyValue ) local table = Entity( 1 ):UniqueIDTable( "mytable_other" ) print( table.MyValue )
Output: "test"

nil

Special Pages


Wikis

?

Render Time: 64ms

DB GetPage 43
Generate Html 3
SaveChanges (1) 7
Render Body 0
Render Sidebar 8