The lateral (longitudinal) lines in chameleons are not sensory structures like in fish. They are simply color patterns. Whether they are related to either species or sexual recognition, camouflage, sexual selection, display, or what, however, likely depends on the species, but in general is not well understood.
Chris