Jump to content

Archived

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

ame2020

lua script connect to cloud

Recommended Posts

Hi ,

how can create lua script connect internet and download updates from cloudflare or any cloud,

can i create  lua script to enable /disable internet connection  

thanks in advance

 

 

Share this post


Link to post
Share on other sites

3 hours ago, ame2020 said:

can i create  lua script to enable /disable internet connection

No, this is not possible, scripts do not have such permissions. Moreover, when "makeRequest" function is used in a script, user will be asked, if he wants to allow internet access for the currently running script.

Share this post


Link to post
Share on other sites
On 4/24/2019 at 8:53 PM, ame2020 said:

Hi ,

how can create lua script connect internet and download updates from cloudflare or any cloud,

can i create  lua script to enable /disable internet connection  

thanks in advance

 

 

Yes u can make file downloader for any your script .

Code for any file downloader :

  --------------------------------------------------------Question2=gg.makeRequest("Link",nil).content

    if Question2 then
      file = io.open(gg.getFile():gsub('lua', 'Downloaded.lua'),'w')
file:write(Question2)
file:close()
gg.alert([[Updated Script is Downloaded❕]])
      pcall(load(gg.getFile()));
     else
      print([[⚠Something Went Wrong⚠]])
      os.exit();
   end
  --------------------------------------------------------

input your file Url in "Link" and it wil be downloaded .

and second question about enable disable connection you can see answer By CmP ( See Up ).

Share this post


Link to post
Share on other sites

fuvc = 'https://www.example.com/your.lua' 
fbegin = gg.makeRequest
function begin() 
local data = assert(load(fbegin(fuvc, nil).content))
return data()
end
begin()

Share this post


Link to post
Share on other sites

  • Similar Content

    • By argarrize
      argarrize — a script to inject pool billiard pro feature? see screenshot.
       
      only work online mode
      Downlaod Script Open Source(Free Edit Without Credit) :
      bit,ly/3bDJqPW
       
      Encrypted by @Yuzon123 (thanks!)
    • By argarrize
      View File SCRIPT : Pool Billiards Pro
      argarrize — a script to inject pool billiard pro feature? see screenshot.
       
      only work online mode
      Downlaod Script Open Source(Free Edit Without Credit) :
      bit,ly/3bDJqPW
       
      Encrypted by @Yuzon123 (thanks!)
      Submitter argarrize Submitted 04/20/2020 Category LUA scripts  
    • By DeSlimsteMan
      Hello,
      please help if you can,
      I'm trying to write a section of my script but I'm stuck at this step...
      After completing a refined search I want to then do a NEW SEARCH of the value that was the result of the refined search ..
      Example...
      Refine search, and resulting value is 12345
      I now want to do a new search of 12345 (Value from the results of refine )
      I don't know the exact value when redefining because I'm doing a group search with another value is in 10000~199999 (this number changes every time the game is opened )

      Thank you in advance and have a great day
    • By n3kitOzz
      Code change a value, but not freazing. Why?
      function flycontrol() gg.setVisible(false) controls_fly = gg.prompt({[1]='Y COORD [-700; 1000]'}, {nil}, {'number'}) if controls_fly == nil then menucode = 2 cheatmenu() else hidemenu() gg.editAll(controls_fly[1],gg.TYPE_FLOAT) gg.freeze = true end end  
    • By n3kitOzz
      Why is the function is executing after the second time? Even in the logs, everything is fine.
      Script:
      local gg = gg menucode = 1 gg.alert('\nDev: @n3kitOzz\nTelegram: @ssb2cheat') function main() menu = gg.choice({'Функции ', 'Выход '}) menucode = 1 if menu == nil then hidemenu() end if menu == 1 then cheatmenu() end if menu == 2 then os.exit() end end function cheatmenu() menucode = 2 cmenu = gg.choice({'♾ Бесконечные патроны', 'Годмод ', 'Темп стрельбы', 'Хилпушка(скоро) ', 'На главную', 'Выйти'}) if cmenu == nil then hidemenu() end if cmenu == 1 then inf_ammo() end if cmenu == 2 then godmode() end if cmenu == 3 then firerate() end if cmenu == 4 then healgun() end if cmenu == 5 then main() end if cmenu == 6 then os.exit() end end function inf_ammo() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber('444418', gg.TYPE_DWORD) gg.sleep(2000) gg.getResults(10000) gg.sleep(3000) gg.editAll('100000000', gg.TYPE_DWORD) gg.sleep(300) gg.toast('Ammo hacked') gg.sleep(100) gg.alert('Теперь у вас миллионы патронов') end function firerate() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber('0.15244479477', gg.TYPE_FLOAT) gg.sleep(2000) gg.getResults(100000) gg.sleep(1000) gg.editAll('0.001', gg.TYPE_FLOAT) gg.sleep(3000) gg.toast('Firerate hacked') gg.alert('Повышен темп стрельбы у ак и скар.') end function godmode() gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber('1132809191', gg.TYPE_DWORD) gg.sleep(2000) a = gg.getResults(10000) gg.sleep(1000) gg.editAll('2000000000', gg.TYPE_DWORD) gg.sleep(500) gg.freeze = true gg.sleep(300) gg.freezeType = FREEZE_NORMAL gg.sleep(399) gg.toast('You are GOOOOOD!') end function megadamage() end function healgun() end function hidemenu() gg.sleep(100) gg.toast('Меню скрыто') gg.setVisible(false) end while true do if gg.isVisible(true) then if menucode == 1 then main() elseif menucode == 2 then cheatmenu() else main() end end end And logs:
      gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber("0.15244479477", gg.TYPE_FLOAT) gg.getResults(100000) gg.editAll("0.001", gg.TYPE_FLOAT) gg.toast("Firerate hacked") gg.alert("Повышен темп стрельбы у ак и скар.") BUT HERE IS NO EFFECT, AND NOTHING HAPPEND. --[[ return: 1 ]] gg.choice({ -- table(1498f91) [1] = '♾ Бесконечные патроны', [2] = 'Годмод ', [3] = 'Темп стрельбы', [4] = 'Хилпушка(скоро) ', [5] = 'На главную', [6] = 'Выйти', }) --[[ return: 3 ]] gg.setRanges(gg.REGION_ANONYMOUS) gg.searchNumber("0.15244479477", gg.TYPE_FLOAT) gg.getResults(100000) gg.editAll("0.001", gg.TYPE_FLOAT) gg.toast("Firerate hacked") gg.alert("Повышен темп стрельбы у ак и скар.") --[[ return: 1 ]] AND AFTER SECOND CALL THIS WORKED  
×
×
  • Create New...