Jump to content
  • 0

Question

Posted

hi all somebody can tell me if its possible in script to have verification between game and script exemple if i make an script for game named x it possible to add something for this script cant be launch in game y ?

11 answers to this question

Recommended Posts

  • 0
Posted (edited)
1 minute ago, blocx said:

@AKidWithMidgetFriend
thanks with this if its the wrong game script can run or no or just an alert ?

With this if the selected process in GG isn't the prefined one then script will immediately end you can add a toast or an alert to tell the user that the selected process is incorrect ofcourse just put it before os.exit()

Edited by AKidWithMidgetFriend
  • 0
Posted
 
local game = gg.getTargetPackage()
if game ~= 'com.smokoko.race'
then os.exit() else then script()
  end
gg.alert('🔥 R.A.C.E 🔥\n\n\n🤑 UNLIMITED CURRENCY/ WAY OF CLASSEMENT 🤑\n\nHOW IT WORK : RUN THIS SCRIPT AFTER STAGE 2 (for currency) AND PLAY A STAGE TO UPDATE CURRENCY\n\n\n👍 ENJOY 👍')
gg.toast('🔥 R.A.C.E  BLOCX UNLIMIT THE POWER 🔥')
print('🖐 BYE BYE FRIEND🖐\n\n🔥 BIG THANK TO ☆SAMMAX71☆🔥')

gg.setVisible(false)
  
function main()

 

Screenshot_20210814-181629_F1 VM.jpg

  • 0
Posted (edited)
32 minutes ago, blocx said:

sorry where i need to paste ? and in red line need to writte somethings?

Red line was just a note for the 'com.game.whatever' because it should be the package name of the game

if you don't know the package name of the game use gg.getTargetPackage() or print(gg.getTargetPackage())should tell you the package name of the current running process --packagenamegoesthere can be deleted entirely it's just a comment

5 minutes ago, blocx said:
 
local game = gg.getTargetPackage()
if game ~= 'com.smokoko.race'
then os.exit() else then script()
  end
gg.alert(' R.A.C.E \n\n\n UNLIMITED CURRENCY/ WAY OF CLASSEMENT \n\nHOW IT WORK : RUN THIS SCRIPT AFTER STAGE 2 (for currency) AND PLAY A STAGE TO UPDATE CURRENCY\n\n\n ENJOY ')
gg.toast(' R.A.C.E  BLOCX UNLIMIT THE POWER ')
print('🖐 BYE BYE FRIEND🖐\n\n BIG THANK TO ☆SAMMAX71☆')

gg.setVisible(false)
  
function main()

 

Screenshot_20210814-181629_F1 VM.jpg

Then script() tells it to go to a function called script it was meant to be replaced by whatever function handles your menu replace it with main() also might need to change then script to then do script I'm not sure I didn't check my syntax it was for reference

Edited by AKidWithMidgetFriend
  • 0
Posted (edited)

this is how i write it..

local info = gg.getTargetPackage() 
if info == "com.smokoko.race" then 
else
gg.alert(" ACCESS DENIED \n\n• This script is for R.A.C.E.\n• Open and run it only in the game.")
os.exit(print("\n• Please select the game process in Gameguardian."))
end

--all your hacks down here--

 

remove the

= script()

as thats a function you does not have.

clearly you are copy paste again..😬

 

Edited by MonkeySAN

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.