You need to use CameraProject with your entity first, then ProjectedX and ProjectedY to determine where to draw your text.
There is an EntityInView function. I won't waste my/your time explaining it because the documentation explains it all well enough.
There is an EntityInView function. I won't waste my/your time explaining it because the documentation explains it all well enough.