Simply ask them a question formatted like this:
If I instead asked you "is does"does box 1 hold the treasure", would you say yes?
Suppose they are lying:
Then they would have lied to the question you asked instead. A lie about a lie is the truth. So their answer to this compound question is the truth to the quoted question.
Suppose they are telling the truth:
Then the answer to this compound question is also the truth.
If there where 16 boxes I could find the one with the treasure using this technique with 4 questions.
Stand with half the boxes on your left, and half on your right. Using the above trick, determine if the treasure is on your left or right "If I asked you instead of this question 'is the treasure to my left', would you answer yes?". Using this, N questions can pin down where the box is among 2^N boxes.