May I transfer my vehicle to a family member or friend to avoid losing it in my bankruptcy?

No.  The Statement of Financial Affairs, a declaration each debtor must file, requires disclosure of all property transfers made by the debtor within one year prior to filing.  Thus, unless the debtor waited a year after the transfer before filing, he would have to disclose the transfer.  It is possible that the Trustee could rescind or void the transfer if the Trustee believes the transfer was made to shield the asset from the estate.  Likewise, the Trustee could file a motion to dismiss on the grounds the case was filed in bad faith.

In sum, transferring a vehicle to a "straw man", in an attempt to avoid listing it as an asset and assuming title would transfer back to the debtor after the case is closed, is not permitted, and can be construed as bankruptcy fraud.