Results 1 to 1 of 1
  1. #1
    mmmaaalll1's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    1

    Gmod Hack Configuration Help (Coding Help)

    In my (shitty) hack I am making a system to save multiple configurations into different text files. It has all been going pretty smoothly up until the loading of the saved configuration. Now lets say that I have saved the value "Aimbot_Toggle" to "true" (Aimbot_Toggle = true). This information is saved as a string because it was loaded out of a text document. This string is saved into a variable (lets say "Aimbot_String"). To make this more simple to understand, if I were to print "Aimbot_String" into console this is what would happen...

    print( Aimbot_String )

    Output: Aimbot_Toggle = true

    So my question is, how do I turn it from this string into actually setting Aimbot_Toggle to true.

    Using string.Explode I am able to get a table of what the command is and what the value should be changed to, but it is still in string form which I don't know how to change the value of the command within the string.

    Idk if I explained this very well, but thanks for anyone that can help me

    Fyi, the command is SmegHack.Options["Friends_FriendIsEnemy"] and when I do runstring it gives an error "attempt to index global 'SmegHack' (a nil value)"
    Last edited by mmmaaalll1; 12-08-2014 at 06:33 PM.

Similar Threads

  1. [Help Request] Help On Gmod Hacks
    By thatboyrich in forum Garry's Mod Discussions & Help
    Replies: 1
    Last Post: 10-17-2014, 12:54 PM
  2. [Tutorial] Tutorial on how to properly install gmod hacks with lua codeing involved.
    By TyleR_RR in forum Garry's Mod Hacks & Cheats
    Replies: 12
    Last Post: 06-05-2013, 08:55 AM
  3. Help Coding Console Hack
    By hacker121343 in forum Call of Duty Modern Warfare 2 Help
    Replies: 0
    Last Post: 02-28-2010, 12:02 PM
  4. Help codeing hacks
    By deathdemigod in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 3
    Last Post: 01-05-2010, 11:49 AM
  5. Hack codes HELP
    By TheBlueMax in forum Visual Basic Programming
    Replies: 6
    Last Post: 10-05-2007, 02:39 PM