Results 1 to 9 of 9
  1. #1
    Leithzze's Avatar
    Join Date
    Sep 2017
    Gender
    male
    Posts
    60
    Reputation
    10
    Thanks
    1,445

    Cool [LUA] VTF Lua Code Execution

    Hi, this is a thing that allows you to upload Lua Code to VTF Files and activate it. I don't know what you're going to use it for, but I'm not particularly interested. I just made a menu for injecting code into the file and a menu for run the code, no more. Enjoy!
    -----------------------------------------------------------
    Open:
    Press "HOME" or console commands [vtf_menu] and [vtf_runmenu]
    -----------------------------------------------------------
    Instruction on VTF File Creator:

    1. Lua Code: Enter your Lua code
    2. Original File Path: Enter the path to the file where the code will be injected
    3. Compiled File Name: Enter any file name
    3. Press Inject
    4. Check the console and copy this
    -----------------------------------------------------------
    Wrote to file : [garrysmod/data/NAME.vtf]
    Secret key : KEY
    VTF offset : 87640

    -----------------------------------------------------------
    Instruction on VTF File Run:
    1. File Path: Enter the path to the file with code
    2. Secret Key: Enter your secret key
    3. Offset: Enter your offset
    4. Press Run
    -----------------------------------------------------------
    PROOF:
    youtube.com/watch?v=YioOwH6c7As
    -----------------------------------------------------------
    Screenshots:

    <b>Downloadable Files</b> Downloadable Files

  2. The Following 43 Users Say Thank You to Leithzze For This Useful Post:

    1207794441 (07-18-2022),1414322520 (12-17-2020),1Justik1 (04-24-2020),Aeryes (06-07-2020),Anatrax2222 (03-16-2023),Babystet (05-10-2020),Bartender (10-04-2020),baumaaa (07-14-2020),CKanade (01-05-2021),Darvin1337 (04-30-2020),doofusbruh30 (06-07-2020),elele (06-23-2020),fanat_urbanichki (07-24-2020),fd2333 (07-18-2020),fryzer (10-01-2020),fsafdgsdfgdsgdfs (04-19-2020),HGJGJHH (01-21-2021),inuyasha91tz (03-09-2024),jinz1993 (06-08-2020),justfinland (07-28-2021),ke1tv (06-08-2020),Kojuch (09-09-2020),Leandro9088 (12-16-2022),lord99 (05-23-2020),MagicMelon1 (06-28-2020),manpo23 (06-07-2020),Meat_ (12-29-2020),Meat___ (04-19-2020),Mina+KFC=LOVE (04-27-2020),mskwiypy (10-08-2020),Nixon51 (04-20-2020),NSKASS (10-21-2023),packer123 (11-11-2020),raymondfather (07-25-2021),RyderNGAA (08-12-2020),SquidVard (05-30-2020),StarButterfly22 (05-19-2020),theindianz (06-21-2020),Trunch2 (10-24-2020),White_Alone (08-25-2020),woogiew (05-14-2021),yakou1337 (07-03-2020),zMagics (09-14-2020)

  3. #2
    Time's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    26,497
    Reputation
    3714
    Thanks
    4,530
    My Mood
    Mellow
    //approved


    post results

  4. #3
    trafikas's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    gm_flatgrass
    Posts
    159
    Reputation
    10
    Thanks
    2,312
    My Mood
    Yeehaw
    letters too small, cant read, make them bigger please

  5. #4
    Leithzze's Avatar
    Join Date
    Sep 2017
    Gender
    male
    Posts
    60
    Reputation
    10
    Thanks
    1,445
    Quote Originally Posted by trafikas View Post
    letters too small, cant read, make them bigger please
    this is done so that people don't ask stupid questions, but as I see it, it didn't help

  6. #5
    stevenemerson7's Avatar
    Join Date
    Apr 2020
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    thanks man good looks

  7. #6
    gefunkel's Avatar
    Join Date
    May 2012
    Gender
    male
    Location
    UK
    Posts
    12
    Reputation
    10
    Thanks
    1
    My Mood
    Breezy
    I look forward to seeing how people use this

  8. #7
    DolphinProdigy1's Avatar
    Join Date
    Jun 2018
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    1
    So this allows you to inject lua into a file and then upload it? That's pretty cool.

  9. #8
    SquidVard's Avatar
    Join Date
    Dec 2017
    Gender
    male
    Posts
    51
    Reputation
    10
    Thanks
    143
    so can it not handle large scripts? when i try to inject a fairly big script it hits me with the "string slice too long"
    but when i do put a small script and try run it, it hits me with the "[ERROR] lua/vtfrun.lua:154: attempt to call global 'exec' (a string value)"

    any fix?


    EDIT: I think the vtfrun error was because of the script itself so I tried a different one and got no errors, so with this am I just able to go in to a game and the script I ran in singleplayer will still work in a server or what?
    Last edited by SquidVard; 05-30-2020 at 11:25 AM.

  10. #9
    Bradleydof's Avatar
    Join Date
    Jun 2020
    Gender
    female
    Location
    Russia
    Posts
    4
    Reputation
    10
    Thanks
    0

    LUA VTF Lua Code Execution

    Is it possible to inject some kind of API into a foreign process and Pause its Code execution until i notify it to finish.
    kind of like using Sleep api in our own code to pause the execution but i want it done on a foreign process...
    By the way i tried using that but it didnt work... instead my own application stoped processing while the foreign application was still doing its business as usual.

    Thanks.

Similar Threads

  1. [Help] [ERROR] lua/cunty.lua:15: attempt to index global 'cunt' (a nil value) 1. unknown -
    By Cunty no mates in forum Garry's Mod Discussions & Help
    Replies: 5
    Last Post: 11-06-2014, 08:06 AM
  2. [Help] "cannot open Lua\script.lua: no such file or directory"
    By mr_happy3 in forum Payday 2 Hacks & Cheats
    Replies: 0
    Last Post: 08-17-2014, 02:08 PM
  3. Best way to learn LUA and the Coding for Gmod?
    By davidtuerk in forum Garry's Mod Discussions & Help
    Replies: 8
    Last Post: 05-05-2013, 12:37 PM
  4. Replies: 12
    Last Post: 05-29-2010, 05:50 AM
  5. Replies: 0
    Last Post: 10-13-2008, 09:24 PM

Tags for this Thread