I think "freelancing" is a grey area in Qatar. You need a sponsor to get an RP and work permit. But I know that many people who are in Qatar anyways (e.g. because their spouse works here) do work as freelancers. As long as you keep a low profile, nobody may bother you but authorities are becoming aware of this matter and you may get into trouble if you publicly advertise your services. Good luck!