INetworkStringTable
INetworkStringTable
This class directly represents the INetworkStringTable object in c++
Metatable function | Description |
---|---|
__tostring |
Returns a formated string of the INetworkStringTable -> INetworkStringTable [tableName] |
__index |
Used to allow one to access saved lua data on the object |
__newindex |
Used to allow one to save lua data on the object |
Methods
Adds the given string into the stringtable.
Returns whether or not the stringtable changed since the given tickcount.
INetworkStringTable:DeleteAllStrings( boolean nukePrecache = false )
Deletes all strings.
Deletes the string at the given index.
This is quiet slow since internally it saves all stringtable values, then fully clears it, and recreates it without the given index.
It will also delete precache data if you delete strings from tables like
It will also delete precache data if you delete strings from tables like
modelprecache
and such.Returns the index the string was found at
table INetworkStringTable:GetAllStrings( )
Returns a table containing all strings.
number INetworkStringTable:GetEntryBits( )
Returns the number of bits it uses to network the entries.
number INetworkStringTable:GetMaxStrings( )
Returns the string limit the table has.
Can be raised withINetworkStringTable:SetMaxEntries
Can be raised with
Returns the userdata from the given index.
number INetworkStringTable:GetNumStrings( )
Returns the number of strings the table has.
Returns the precache flags from the given index.
Returns the userdata from the given index.
number INetworkStringTable:GetTableId( )
Returns the table id.
string INetworkStringTable:GetTableName( )
Returns the table name.
boolean INetworkStringTable:IsClientSideAddStringAllowed( )
Returns
true
if the client is allowed to add strings to this table.
boolean INetworkStringTable:IsFilenames( )
Returns
true
if this table stores filenames.
This value can only be set when creating the table using stringtable.CreateStringTableEx for creation.
INetworkStringTable:SetAllowClientSideAddString( boolean bAllowClientSideAddString = false )
Allows/Denies the client from adding additional strings to the table clientside.
This is a direct alias to stringtable.SetAllowClientSideAddString
INetworkStringTable:SetMaxEntries( number maxStrings )
Sets the entry/string limit to the given number.
Raising this will causes issues in some cases where the limit is hardcoded clientside.
Stringtables that this shouldn't be used on:
Stringtables that this shouldn't be used on:
modelprecache
-> Limited by CClientState::model_precache
genericprecache
-> Limited by CClientState::generic_precache
soundprecache
-> Limited by CClientState::sound_precache
decalprecache
-> Limited by CClientState::decal_precache
networkvars
-> Limited by the internal net messages gmod uses. (Mainly NW2's networking)Sets the userdata for the given index.
Sets the precache userdata for the given index.
This should only be used on precache stringtables.
Sets the userdata for the given index.