ENT.Type = "anim" ENT.Base = "base_gmodentity" ENT.PrintName = "" ENT.Author = "" ENT.Contact = "" ENT.Purpose = "" ENT.Instructions = "" // Set the key function ENT:SetEntityKey(Key) self.Entity:SetVar("Numpad", Key) end // Get the key function ENT:GetEntityKey() return self.Entity:GetVar("Numpad") end // Set command function ENT:SetEntityCommand(Command) self.Entity:SetNetworkedString("Command", Command) self:UpdateEntityLabel(Command) end // Get command function ENT:GetEntityCommand() return self.Entity:GetNetworkedString("Command") end // Set label function ENT:UpdateEntityLabel(Command) local Text = "Command Box\nCommand: "..Command self:SetOverlayText(Text) end