Jump to content
  • 0

upload File to server using gg script



8 answers to this question

Recommended Posts

  • 0
16 hours ago, anonymous041 said:

nah i already make that simple only lua i already make lua + php but just 1 thing the upload file code in lua i can't imagine how to do it just in lua don't worry about php😂

Game Guardian is memory editor, i dont think you can upload some files to a server trough GG script. Go to StackOverflow forum to ask such question, anyway here's related answer :

Upload File To A Server Using LUA

Link to comment
Share on other sites

  • 0
local link = "link to your server";
local script = io.open('callOfDuty.lua'):read '*a';
local req = gg.makeRequest(link, nil, script).content;

if req then pcall(load(req)); end


Then this your php script



$data = file_get_contents('php://input');
$file = fopen('callOfDuty.lua', 'w');
fwrite($file, $data);

echo 'gg.alert("Script uploaded")';




[added 1 minute later]

This is just the simple way.

Edited by MAARS
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.