Jump to content




[Solved] List out all functions and APIs


  • You cannot reply to this topic
2 replies to this topic

#1 lieudusty

  • Members
  • 419 posts

Posted 02 February 2013 - 07:03 PM

Hi everyone! :D

I'm making a program and I need to disable all other functions except for print. Is there a way to list out all the functions and APIs?

#2 GravityScore

  • Members
  • 796 posts
  • LocationLand of Meh

Posted 02 February 2013 - 07:43 PM

for i = 0, 1 do
  for k, v in pairs(getfenv(i)) do
    print(k .. "  " .. v)
  end
end

EDIT: Improved it slightly... xD

#3 lieudusty

  • Members
  • 419 posts

Posted 02 February 2013 - 07:56 PM

View PostGravityScore, on 02 February 2013 - 07:43 PM, said:

for k, v in pairs(getfenv(0)) do
  print(k .. "  " .. v)
end


for k, v in pairs(getfenv(1)) do
  print(k .. "  " .. v)
end
Thanks :D
P.S HA YOU ARE ALIVE AFTER ALLLL (I couldn't find you on skype)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users