Garry's Mod Wiki

Garry's Mod Wiki

  table Player:UniqueIDTable( any key )

Description

We advise against using this. It may be changed or removed in a future update. This is based on Player:UniqueID which is deprecated and vulnerable to collisions.

Returns a table that will stay allocated for the specific player serveside between connects until the server shuts down. On client it has no such special behavior.

This table is not synchronized (networked) 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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...