offset is a parameter passed to the script which is then passed to your function as the second parameter.
Code:
frameScroll:SetScript("OnVerticalScroll", function (self, offset)
FauxScrollFrame_OnVerticalScroll(frameScroll, offset, 16, Cmdli.scrollerUpdate) -- "Cmdli" is my vcurrent namespace
end)