50mm 1.8f auto focus is working for Nikon D5000?

50mm 1.8f auto focus is working for Nikon D5000?

If you look in your user manual, you will see that the D5000 can only auto-focus using AF-S Nikkor lenses.
This means that the AF-S 50 mm f/1.4 is the only Nikkor 50 mm lens that can auto-focus with your fine, entry level D5000.
If you had wanted to use older AF lenses, you should have purchased the Nikon D7000, a more advanced camera that can use AF, AF-I and AF-S lenses
This link will help you understand which lenses will work in the auto-focus mode on your fine D3100

No it is not.
Either get the more expensive f1.4 or get the 35mm f1.8 AF-S which is only slightly more expensive than the 50mm f1.8