You are using it wrong. One look at the
ESOUIDocumentation.txt tells me that it takes a parameter "infamityAmount". Looking a few entries above, I also see a function "GetInfamity" which returns an integer, so I suppose you have to use it like so:
Lua Code:
local infamyNumber = GetInfamyLevel(GetInfamy())
p.s. code questions should go into the
developer forums. This one here is for addon support questions.