Lindsay accepted the role -- even though it entailed filming on June 17 ... while LiLo was still wearing her SCRAM bracelet around her ankle. We're told Lindsay was cool with the SCRAM being in the shot ... and even ad-libbed a line referencing the device....