09/07/2007 AT 06:00 PM EDT
is staying focused on what could be a "recurring" One Tree Hill
role despite his bitter custody battle
with ex Britney Spears
"It's good and I'm having fun," a soft-spoken Federline told PEOPLE Thursday night at The Cellar Billiards & Grill in downtown Wilmington, N.C., of his guest spot on the CW hit.
Federline, who was a deemed a perfect fit
for the rock-star character by One Tree
producers, arrived Wednesday for a two-day shoot in the recording studio, and, despite his troubles, appeared upbeat.
"Generally, he's in a good mood," said a crewmember on the set during filming this week. "The agreement we have is to shoot around his custody fight."
A CW spokesperson says Federline is slated to shoot just two episodes, "but producers say it could be a recurring role. It's an open-ended story."
No stranger to North Carolina nightlife
, Federline hit The Cellar with his bodyguard around 11 p.m. Thursday. Dressed in a white T-shirt and matching do-rag, he nestled into a seat by the bar.
Federline took the party a few doors down to The Liquid Room shortly after midnight, where he and his mini-entourage danced around the deejay booth until closing time.