I'm funded, and I wrote my own project including its proposal. Some places ask for new ideas for available funding, and some places offer a funded place on a project that is either pre-arranged or taking place at the department already.
When I was writing my proposal, I found the Open University publications and their website very useful. I recommend visiting the site.
Good luck.