Garry's Mod Wiki

Entity:SetDTEntity

  Entity:SetDTEntity( number key, Entity ent )

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 entity on this entity's datatable.

Arguments

1 number key
Goes from 0 to 31.
2 Entity ent
The entity to write on this entity's datatable.