entity label?

How do i go about placing a label on an entity so that when you look at it it will show the resources in it.
the entities spawn server side similar to the star-gate spawns.

I need some sort of code example also if possible.

Along with NWInts of the resources on it.

ehhh more like the LS way is what Im looking for