It means the person they are talking about is so gay that he cannot work, do things or live his normal life.
Here are some some examples using function:
- I can't function in this dirty kitchen.
-Can you function in a loud place?
I hope this answers your question.