Jump to content
  • 0

Online Script os.exit()


BaldiGT

Question

How to Make os.exit() in pastebin online script....i want to exit the script in pastebin.....

function YT()
T = load(gg.makeRequest('https://pastebin.com/raw/ByR7R1HX').content)
pcall(T)

--if the script is maintenance, gg.alert will appears and os.exit()
--if the scfipt is Normal then MENUHACK()

function MENUHACK()
gg.alert('MENU')
end

 

 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

1 minute ago, Enyby said:

Call it on loaded code.

if the script is maintenance so the script will appears gg.alert then os.exit()...

If the script is normal then go function MENU HACK......

Link to comment
Share on other sites

20 minutes ago, BaldiGT said:

How to Make os.exit() in pastebin online script....i want to exit the script in pastebin.....


function YT()
T = load(gg.makeRequest('https://pastebin.com/raw/ByR7R1HX').content)
pcall(T)

--if the script is maintenance, gg.alert will appears and os.exit()
--if the scfipt is Normal then MENUHACK()

function MENUHACK()
gg.alert('MENU')
end

 

 

This ?

Link to comment
Share on other sites

7 hours ago, BaldiGT said:

How to Make os.exit() in pastebin online script....i want to exit the script in pastebin.....


function YT()
T = load(gg.makeRequest('https://pastebin.com/raw/ByR7R1HX').content)
pcall(T)

--if the script is maintenance, gg.alert will appears and os.exit()
--if the scfipt is Normal then MENUHACK()

function MENUHACK()
gg.alert('MENU')
end

 

 

Hope this helps note its 2 sections of code one to be used for the script launcher and the other to be in pastebin

--offline script/launcher
nomaintenace=0
T=load(gg.makeRequest('insert pastebin link here')
 pcall(T)
  
--pastebin
  function MENUHACK()
    gg.alert('MENU')
    end
maintenance=1 --1=maintenance on  0=maintenance off
if maintenance>nomaintenance then
gg.alert('script is undergoing maintenance try again later')
os.exit()
  else
MENUHACK()
end

 

Link to comment
Share on other sites

You need 2 online content

1. Content to check if main scripts is under maintenance or no. Just write 0 for not in under maintenance, and 1 to if main script is under maintenance.

2. Main scripts content will load if condition maintenance check is 0, else os.exit()

mtCheck = gg.makeRequest('url').content

mainScript = gg.makeRequest('url').content

if mtCheck ~= 0 then
  gg.alert('Script is under maintenance, please comeback later')
  else
  pcall(load(mainScript))
end

Just change mtCheck to 0 if your main scripts is under maintenance.

Link to comment
Share on other sites

Pecah palakau

API = gg.makeRequest('https://pastebin.com/raw/ZmaPTNiL').content
if not API then
gg.alert('❓ WHY YOU CANCEL ❓\n\nThis is online script you need a internet to access')
noselect()
else
pcall(load(API))
end

if status == "Off" then
  gg.alert('❗ SCRIPT MAINTENANCE ❗\n\nScript is under maintenance please comeback later\n\n')
  os.exit()
end

 

If you want maintenance your script only change status = "Off" in pastebin if you want turn on status ="On"

Link to comment
Share on other sites

55 minutes ago, ZTzTopiaa said:

Pecah palakau

API = gg.makeRequest('https://pastebin.com/raw/ZmaPTNiL').content
if not API then
gg.alert('❓ WHY YOU CANCEL ❓\n\nThis is online script you need a internet to access')
noselect()
else
pcall(load(API))
end

if status == "Off" then
  gg.alert('❗ SCRIPT MAINTENANCE ❗\n\nScript is under maintenance please comeback later\n\n')
  os.exit()
end

 

If you want maintenance your script only change status = "Off" in pastebin if you want turn on status ="On"

Anjir :v

This Is Very Usefull Thx Bro 🙂

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.