gg_merger_v1.zip
200.3 KB
Please open Telegram to view this post
VIEW IN TELEGRAM
Lua
menu=gg.choice({"feature1","feature2"},nil,"title")
if menu==1 then
--feature1
end
if menu==2 then
--feature2
end
ɴᴏʀᴍᴀʟ ᴄʜᴏɪᴄᴇ
Lua
menu=gg.choice({"feature1","feature2"},0,"title")
if menu==1 then
--feature1
end
if menu==2 then
--feature2
end
ᴄɪʀᴄʟᴇ ᴄʜᴏɪᴄᴇ
Lua
input=gg.prompt("add password")
if input == "123" then
--pass correct
else
--pass not correct
end
ɪɴᴘᴜᴛ ᴛᴇxᴛ
Lua
gg.setRanges(gg.REGION_ANONYMOUS)
gg.searchNumber(2.0,gg.TYPE_FLOAT)
--all results address
gg.editAll(4.0,gg.TYPE_FLOAT)
gg.setRanges(gg.REGION_C_DATA)
gg.searchNumber(50,gg.TYPE_DWORD)
gg.getResults(15) --15 results address
gg.editAll(0,gg.TYPE_DWORD)
ᴇxᴀᴍᴘʟᴇ ᴍᴇᴍᴏʀʏ ᴡʀɪᴛᴇ
Lua
for i = 20, 100, 20 do
gg.sleep(300)
gg.toast(i.."%")
end
ʟᴏᴀᴅɪɴɢ ᴛᴏᴀsᴛ
This media is not supported in your browser
VIEW IN TELEGRAM
menu=gg.choice({"camera"},0,"title")
if menu==1 then
--camera
input=gg.prompt("add value")
for i = 20, 100, 20 do
gg.sleep(300)
gg.toast(i.."%")
end
gg.alert("Camera Set :"..input)
gg.setUnityCamera(input)
end
New ApiFunction :
Note :
Please open Telegram to view this post
VIEW IN TELEGRAM
menu=gg.choice({"Camera On","Camera Off"},nil,"setCamera")
if menu == 1 then
gg.setUnityCamera(20)
end
if menu == 2 then
gg.setUnityCamera(-20)
end
ᴏɴ ᴏғғ ᴄᴀᴍᴇʀᴀ
Lua
width=gg.getUnityScreenWidth();
height=gg.getUnityScreenHeight();
camera=gg.getUnityCamera();
if width ~= nil and type(camera)=="number" then
centerX=width/2;
centerY=height/2;
distance={}
distance[1]=centerX;
distance[2]=centerY;
value=gg.seekbar(distance);
gg.setUnityCamera(camera+value);
end
ᴄᴀᴍᴇʀᴀ ᴡɪᴛʜ sᴇᴇᴋʙᴀʀ
::GET FUNCTION::
::SET FUNCTION::
::SET COLOR::
::GET OBJ POSITION::
gg.getInt(class,fieldname)
--10
gg.getString(class,fieldname)
--DeviceModel
gg.getFloat(class,fieldname)
--22.2f
gg.getBool(class,fieldname)
--false
gg.getList(class,fieldname)
--table {}
gg.getInt(class,methodname)
gg.getString(class,methodname)
gg.getFloat(class,methodname)
gg.getBool(class,methodname)
gg.getList(class,methodname)
::SET FUNCTION::
gg.setInt(class,fieldname,100)
gg.setString(class,fieldname,"UserGuest")
gg.setFloat(class,fieldname,2.50)
gg.setBool(class,fieldname,true)
gg.setInt(class,methodname,integer)
gg.setString(class,methodname,string)
gg.setFloat(class,methodname,float)
gg.setBool(class,methodname,boolean)
::SET COLOR::
--Param (Color value)
gg.setColor(class,methodname,"#ff0000")
::GET OBJ POSITION::
player=gg.getList(class,methodname)
for i = 1,#player do
print(Vec3(player[i]).x)
print(Vec3(player[i]).y)
--3D
--print(Vec3(player[i]).z)
end