A man accused of hiding a gun used in Melbourne's deadly Love Machine nightclub drive-by shooting wants bail.

Moussa Hamka is charged with being an accessory after the fact to murder over the April shooting, which killed security guard Aaron Osmani and patron Richard Arow.

When questioned about the gun, Moussa Hamka told police he'd picked up what he thought was drugs or cash wrapped in a T-shirt from a Fawkner park several weeks after the shooting. Credit:Facebook

The gun used in the shooting was later found hidden in Hamka's bedroom, Melbourne Magistrates Court was told during a bail application on Monday.

It is not alleged Hamka was involved in the shooting, but the 32–calibre firearm was later found hidden in his bedroom, prosecutors told the court.