CHICAGO (AP) _ Six more people, including five current or former Cook County sheriff's police officers, have been indicted in a federal investigation into suburban bookmaking and prostitution.

A federal grand jury on Wednesday alleged the officers accepted bribes to allow illegal gambling and sex clubs to operate.

The 21-count indictment, which arose from a federal investigation code- named ''Operation Safe Bet,'' accused the sixth man of delivering the bribe money.

''Safe Bet has now produced 17 indictments,'' said FBI spokesman Bob Long. He said there may be more.

Gary Shapiro, who oversees the Chicago Strike Force, part of the Justice Department's Organized Crime Strike Force, said Wednesday the men were all charged with racketeering.

The indictment charges that the five men with ties to the sheriff's office accepted bribes ranging from $300 to $2,000 between 1977 and 1984 from prostitution and gambling club operators, and allowed off-track betting operations to function.

Shapiro said the money allegedly received by the five men was ''in exchange for failing to make arrests, warning subjects of planned sheriff's department raids, failing to investigate illegal activities and for advising the people paying bribes on how to avoid detection.

''They were like law enforcement consultants.''

All had worked in the department's vice control division.

The four men still with the department have been transferred to ''less sensitive positions,'' said Sheriff Richard Elrod.

Named in the indictments charging conspiracy to permit racketeering were Lt. James Keating, 48; Sgt. Bruce Frasch, 39; Officers Robert Wiencek, 48, and William Collins, 37; former Officer Robert Napora, 41, now living in Minot, N.D.; and the alleged payoff man, Joseph Marren, 46.

Frasch, Keating and Marren also were charged with various extortion counts, said Shapiro.

Keating, a 21-year veteran, formerly headed the department's organized crime division. Frasch, a 16-year veteran, headed vice control from 1981 until last August. Weincek has been on the force 17 years, Collins for 12 years and Napora for 13 years before he resigned in 1983.

Operation Safe Bet, a joint undercover investigation by the FBI and the Internal Revenue Service, targeted credit-card prostitution rackets in the Chicago suburbs and near O'Hare International Airport, officials said. The operation began in 1980 and ended last year with raids on a dozen suburban establishments.