Jump to content

Lua Guide: checking the package (Remake)


publ1chax
 Share

Recommended Posts

Again a lesson on writing a script from a no-name, which has only cheats in its head.
Today I will teach you how to record a package check of a selected process.
It can be written as follows:

if gg.getTargetPackage() == "com.yaga.ndon"
then
gg.toast("Loading script, await")
else
print("I am a rooster")
os.exit()
end

 

P.S My primary language is Russian. I used a translator, I hope everything is fine with the translation

Link to comment
Share on other sites

  • 8 months later...

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
 Share

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