-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmioscape-nfsnl.lua
60 lines (56 loc) · 1.32 KB
/
mioscape-nfsnl.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
gg.setRanges(gg.REGION_C_ALLOC)
gg.processPause()
MIO=1
function START()
MENU=gg.choice({
'\n[Money]\n',
'\n[Gold]\n',
'\n[Back to Loader]\n',
}, nil, '[NFS:NL v0.7.1-beta]')
if MENU == 1 then Money() end
if MENU == 2 then Gold() end
if MENU == 3 then Exit() end
MIO=-1
end
function Money()
gg.processPause()
mio = gg.prompt({[1]='Change to:', [2]='Current Money:'}, {[1]='', [2]=''})
gg.searchNumber(mio[2]..';327691::5', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.refineNumber(mio[2], gg.TYPE_DWORD)
gg.getResults(100)
gg.editAll(mio[1], gg.TYPE_DWORD)
gg.clearResults()
gg.processResume()
gg.toast('Money Changed')
end
function Gold()
gg.processPause()
mio = gg.prompt({[1]='Change to:', [2]='Current Gold:'}, {[1]='', [2]=''})
gg.searchNumber(mio[2]..';327691::5', gg.TYPE_DWORD, false, gg.SIGN_EQUAL, 0, -1)
gg.refineNumber(mio[2], gg.TYPE_DWORD)
gg.getResults(100)
gg.editAll(mio[1], gg.TYPE_DWORD)
gg.clearResults()
gg.processResume()
gg.toast('Gold Changed')
end
function Exit()
gg.processResume()
TG = gg.makeRequest(
'https://ihya.dev/gg-loader/mioscape-loader.lua')
.content
if not TG then
os.exit()
else
pcall(load(TG))
end
end
while true do
if gg.isVisible(true) then
MIO = 1
gg.setVisible(false)
end
if MIO == 1 then
START()
end
end