Police have charged two men after they found illegal drugs, cash and a python snake in their four-wheel drive in central-western New South Wales.

A ute and the four-wheel drive crashed near Parkes yesterday morning, trapping one of the passengers.

While he was being freed, police captured a 1.5 metre-long python that was slithering around after the crash knocked it from its box.

Police then cleared the accident site and tool the four-wheel drive and an aluminium boat to a holding yard to be searched.

They say the boat had been altered and some polystyrene buoyancy removed.

Officers allege the boat had been used to smuggle illegal drugs.

Police also say they around $195,000 and a quantity of the drug ice.

Two men, from Shepparton in Victoria, have been charged with a range of offences including dealing with the proceeds of crime, drug charges and dealing with protected fauna.

The trapped man was taken to Parkes Hospital for treatment while the other passenger and the driver of the ute were unhurt.