The UV lights work however they are not as effective as a grow light.
If your not going to use a grow light make sure you have got extra UV tube lights or normal tubes for efficient photosynthesis for your plants. However I would recommend a shade area in your enclosure for your chameleon, to allow them to escape from the light if they want shade.