Jump to content
BaldiGT

Online Script os.exit()

Recommended Posts

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

 

 

Edited by BaldiGT

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Well, write the necessary code. What is the problem?

Even put os.exit on the first line.

Share this post


Link to post
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 ?

Share this post


Link to post
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

 

Share this post


Link to post
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.

Share this post


Link to post
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"

Share this post


Link to post
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 🙂

Share this post


Link to post
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...