Jump to content
  • 0

Creating Scripts Without GG Classes


dulge_xo

Question

Posted

Hey guys so Ive been using this config skin changer for a while now and decided to have a look at its source code. Its basically a skin changer that allows you to create, save and load your configs. I was very confused when i saw that there is no GG classes used in the lua script (example gg.alert, gg.searchvalues). Im new to scripting with game guardian so im just wondering how this script works/interacts with GG as it looks like just plain Lua code. Is it linked to a server or something? Im just really confused how it works. Ill attach the script below.

[1.3] Cfg buider by .lua

2 answers to this question

Recommended Posts

Posted

In lua, all of the global variables are in _G. So _G.gg is where gg classes are. _G.gg.alert and gg.alert are equivalent.

That script uses a decrypt function, De(cr), to convert a table of chars into a string.

_G[De({103,103})][De({103,101,116,84,97,114,103,101,116,73,110,102,111})]() from line 3 = _G.gg.getTargetInfo()

This script does not use the internet. If it did, you would get a popup saying that the script wants to use the internet. gg.makeRequest is the api for internet or in this script's case, _G[De({103,103})][De({109,97,107,101,82,101,113,117,101,115,116})]

Posted
1 hour ago, AmbitiousNoob said:

In lua, all of the global variables are in _G. So _G.gg is where gg classes are. _G.gg.alert and gg.alert are equivalent.

That script uses a decrypt function, De(cr), to convert a table of chars into a string.

_G[De({103,103})][De({103,101,116,84,97,114,103,101,116,73,110,102,111})]() from line 3 = _G.gg.getTargetInfo()

This script does not use the internet. If it did, you would get a popup saying that the script wants to use the internet. gg.makeRequest is the api for internet or in this script's case, _G[De({103,103})][De({109,97,107,101,82,101,113,117,101,115,116})]

Ah ok that makes a lot of sense now, thanks. I also saw there was that "translate" in the script

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.