You need to move the NOVIDADE_ToggleFrame function code above (before)
Code:
SlashCmdList["NOVIDADE"] = function ()
NOVIDADE_ToggleFrame();
end
in the .lua file.
so it looks something like:
Lua Code:
local function NOVIDADE_ToggleFrame()
-- whatever the function code is
end
SlashCmdList["NOVIDADE"] = function ()
NOVIDADE_ToggleFrame();
end