Courteney [Photo: Instagram @courteneycoxofficial]

David Beckham has been snapped in a hot tub with Courteney Cox in what seems like an unlikely showbiz friendship.

But there was a hidden meaning behind their cosy encounter, as David appeared to be dropping hints about a new project.

Also in Courteney's snap was some of the cast of Modern Family, seemingly confirming that the duo will make cameo roles in future episodes.

In the photo, the Friends actress, 55, looked stunning in a black bikini top, flaunting a hint of cleavage.

She moved in close to David, 44, who was flashing his large array of tattoos in a pair of small black swimming trunks.

David Beckham.[Photo: Instagram @davidbeckham]

In the second image they were joined by Modern Family stars Jesse Tyler Ferguson and Eric Stonestreet, who were also in their swimsuits.

Courteney captioned the post: "Too hot in the hot tub! #modernfamily."

David also posted a picture of him with Courteney in which they seemed to be reading scripts for the show.

In the image Courteney looked stunning in a bright red shirt and blue jeans as she smirked while reading her script.

David raised an eyebrow and grinned as he joined in the line-reading session.

He captioned his photo: "I met a new FRIEND today at work @courteneycoxofficial #modernfamily."

The dad-of-four finished the post with a heart eyes emoji.