The government has allocated RM32 million to help ex-servicemen improve their lives after completing their service.