Revision Difference
Player:UniqueIDTable#551319
<function name="UniqueIDTable" parent="Player" type="classfunc">
<description>
<deprecated>This is based on <page>Player:UniqueID</page> which is deprecated and vulnerable to collisions.</deprecated>
Returns a table that will stay allocated for the specific player between connects until the server shuts down.
<note>This table is not synchronized between client and server.</note>
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.
⤶
<note>This table is not synchronized (networked) between client and server.</note>
</description>
<realm>Shared</realm>
<args>
<arg name="key" type="any">Unique table key.</arg>
</args>
<rets>
<ret name="" type="table">The table that contains any info you have put in it.</ret>
</rets>
</function>
<example>
<description>Example usage</description>
<code>
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 )
</code>
<output>
"test"
nil
</output>
</example>