Garry's Mod Wiki

Entity:SetDTString

  Entity:SetDTString( number key, string str )

Description

This is used internally - although you're able to use it you probably shouldn't.

This is called internally by the Entity:NetworkVar system, you can use this in cases where using NetworkVar is not possible.

Sets the specified string on the entity's datatable.

The length of these strings are capped at 512 characters.

Arguments

1 number key
Goes from 0 to 3.
2 string str
The string to write on the entity's datatable, can't be more than 512 characters per string.