Jump to content
  • 0

upload File to server using gg script


anonymous041

Question

8 answers to this question

Recommended Posts

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

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

 

<?php

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

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

?>

 

 

[added 1 minute later]

This is just the simple way.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.