Results 1 to 9 of 9
  1. #1
    LeYeezus's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    20
    My Mood
    Inspired

    Lua script to open all convars at once.

    Okay lets say we have 2 lua scripts and 2 convars we want to set. Is there a way to make a lua script when u load it in console it does this.

    lua_openscript_cl Convar/ScriptOpener.lua.
    convar1 0 to 1
    convar2 0 to 2
    Lua_openscript_cl Luascript1.lua
    Lua_openscript_cl Luascript2.lua


    |The two convars and lua scripts would be opened in console when doing Lua_openscript_cl Convar/Scriptopener.lua

    If anyone has anything like this or knows how to do anything like this please help me out. I've tryed but failed

  2. #2
    Trollaux's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    2,074
    Reputation
    137
    Thanks
    792
    runconsolecommand incrementvar convar 0 1 1
    will be patched soon
    d e a d b o y s
    Quote Originally Posted by Dave84311 View Post
    What do you call a troll with shitty jokes?
    Trollaux
    Quote Originally Posted by Kyeran View Post
    Foot job with lots of oil.
    Quote Originally Posted by Kyeran View Post
    If she's 12, I'm 12.

  3. #3
    LeYeezus's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    20
    My Mood
    Inspired
    Quote Originally Posted by Trollaux View Post
    runconsolecommand incrementvar convar 0 1 1
    will be patched soon
    Thanks for the reply but I did not want that <3 I wanted to know how I can make a lua_openscript_cl lua file that will load all these at once.

  4. #4
    tdsx's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    1,004
    Yes, it's called Global.include

  5. #5
    LeYeezus's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    20
    My Mood
    Inspired
    include( string luascript1.lua )?

  6. #6
    dakilla345's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    171
    Reputation
    10
    Thanks
    207
    My Mood
    In Love
    Quote Originally Posted by LeYeezus View Post
    include( string luascript1.lua )?
    no its include("fag.lua") but make sure to put the right directorories

  7. #7
    LeYeezus's Avatar
    Join Date
    Nov 2014
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    20
    My Mood
    Inspired
    Quote Originally Posted by dakilla345 View Post
    no its include("fag.lua") but make sure to put the right directorories
    Holy crap dude such hilarious.

  8. #8
    dakilla345's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    171
    Reputation
    10
    Thanks
    207
    My Mood
    In Love
    Quote Originally Posted by LeYeezus View Post
    Holy crap dude such hilarious.
    thats thw way to do it include("lol/something.lua")

  9. #9
    RustyBallz's Avatar
    Join Date
    May 2014
    Gender
    male
    Location
    neko land
    Posts
    33
    Reputation
    10
    Thanks
    313
    My Mood
    Asleep
    function CMANCA:ASBOOT(v)
    RunConsoleCommand("...", 1);
    end

Similar Threads

  1. [Release] Simple Mass File Opener for opening all decrypted lua cache files at once
    By F1ST2BULLET in forum Garry's Mod Hacks & Cheats
    Replies: 10
    Last Post: 12-08-2014, 01:45 PM
  2. [Request] Lua script to unlock all Teir bonuses?
    By Screenguyy in forum Payday 2 Hacks & Cheats
    Replies: 2
    Last Post: 08-20-2014, 01:53 PM
  3. Anyone got a working all masks/all weapons and set level lua script?
    By CrazedM in forum Payday 2 Hacks & Cheats
    Replies: 0
    Last Post: 08-22-2013, 07:43 PM
  4. Lua script all mask revert help
    By AstroA50 in forum Payday 2 Hacks & Cheats
    Replies: 2
    Last Post: 08-22-2013, 03:04 PM
  5. Lua scripts not opening
    By GokusDog in forum Garry's Mod Discussions & Help
    Replies: 4
    Last Post: 06-07-2013, 12:16 PM