• Is os.execute() banned in GMOD?
    3 replies, posted
  • Avatar of falvon
  • Hi fellas, my apology if this question has been asked and answered. So I was trying my run my first script -- to add a radio in GMOD that can play music in my computer. and there is a line : [CODE]os.execute("..path..\foobar2000.exe /play")[/CODE] but the console told me that [I]execute is nil[/I]! I guess garry banned execute for security concerns, and I totally understand. However, I was just trying to create a virtual "me" to have some fun in the virtual world, and I always play single. Is there a way to give me back the os.execute ? thanks a lot, for any infomation.
  • Avatar of JustSoFaded
  • [img]http://puu.sh/rS4u[/img] Those are the functions you are allowed to access concerning the os library. Garry has made many upon many modifications to the Garry's Mod standard of LUA. If you want os.execute back you will need a binary module, which wouldn't be hard to make.
  • Avatar of falvon
  • [QUOTE=JustSoFaded;35740099] If you want os.execute back you will need a binary module, which wouldn't be hard to make.[/QUOTE] Thanks for your answer, and the way to check the available function tables.:wink: In fact, I tried to find the lua part(dll, lib or something) in garrys mod directories. But I don't know which one is it. Do you have any idea?:wink: