1. Post #1
    falvon's Avatar
    April 2012
    3 Posts
    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")
    but the console told me that execute is nil!

    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.

  2. Post #2
    JustSoFaded's Avatar
    December 2011
    432 Posts


    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.
    Reply With Quote Edit / Delete Reply Windows 7 United States Show Events Agree Agree x 2 (list)

  3. Post #3
    falvon's Avatar
    April 2012
    3 Posts
    If you want os.execute back you will need a binary module, which wouldn't be hard to make.
    Thanks for your answer, and the way to check the available function tables.
    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?

  4. Post #4
    JustSoFaded's Avatar
    December 2011
    432 Posts
    lua_shared.dll at garrysmod/garrysmod/bin