This repository was archived by the owner on Jun 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpessi_v0.2.lua
104 lines (87 loc) · 4.15 KB
/
pessi_v0.2.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
--all credits to me and phobos (Very Based) thanks for making the code more optimized and make it looks better :)
gui.show_message("Pessi", "Ghost Of Miami Is Coming...")
log.warning("Use At Your Own Risk This Hasn't Been Tested With YimMenu, But It's Safe With Some Menus..")
local TransactionManager <const> = {};
TransactionManager.__index = TransactionManager
function TransactionManager.new()
local instance = setmetatable({}, TransactionManager);
instance.Transactions = {
{label = "15M (Bend Job Limited)", hash = 0x176D9D54},
{label = "15M (Bend Bonus Limited)", hash = 0xA174F633},
{label = "7M (Gang Money Limited)", hash = 0xED97AFC1},
{label = "3.6M (Casino Heist Money Limited)", hash = 0xB703ED29},
{label = "2.5M (Gang Money Limited)", hash = 0x46521174},
{label = "2.5M (Island Heist Money Limited)", hash = 0xDBF39508},
{label = "2M (Heist Awards Money Limited)", hash = 0x8107BB89},
{label = "2M (Tuner Robbery Money Limited)", hash = 0x921FCF3C},
{label = "2M (Business Hub Money Limited)", hash = 0x4B6A869C},
{label = "1M (Avenger Operations Money Limited)", hash = 0xE9BBC247},
{label = "1M (Daily Objective Event Money Limited)", hash = 0x314FB8B0},
{label = "1M (Daily Objective Money Limited)", hash = 0xBFCBE6B6},
{label = "680K (Betting Money Limited)", hash = 0xACA75AAE},
{label = "500K (Juggalo Story Money Limited)", hash = 0x05F2B7EE},
{label = "310K (Vehicle Export Money Limited)", hash = 0xEE884170},
{label = "200K (DoomsDay Finale Bonus Money Limited)", hash = 0xBA16F44B},
{label = "200K (Action Figures Money Limited)", hash = 0x9145F938},
{label = "200K (Collectibles Money Limited)", hash = 0xCDCF2380},
{label = "190K (Vehicle Sales Money Limited)", hash = 0xFD389995}
}
return instance;
end
---@return Table TransactionList
function TransactionManager:GetTransactionList()
return self.Transactions;
end
---@return Int32 character
function TransactionManager:GetCharacter()
local _, char = STATS.STAT_GET_INT(joaat("MPPLY_LAST_MP_CHAR"), 0, 1)
return tonumber(char);
end
---@param Int32 hash
---@param Int32 category
---@return Int32 price
function TransactionManager:GetPrice(hash, category)
return tonumber(NETSHOPPING.NET_GAMESERVER_GET_PRICE(hash, category, true))
end
---@param Int32 hash
---@param? Int32 amount
function TransactionManager:TriggerTransaction(hash, amount)
globals.set_int(4537212 + 1, 2147483646)
globals.set_int(4537212 + 7, 2147483647)
globals.set_int(4537212 + 6, 0)
globals.set_int(4537212 + 5, 0)
globals.set_int(4537212 + 3, hash)
globals.set_int(4537212 + 2, amount or self:GetPrice(hash, 0x57DE404E))
globals.set_int(4537212, 1)
end
function TransactionManager:Init()
local tab = gui.get_tab("Monkey")
local sub_atm = tab:add_tab("ATM")
local sub_transaction = tab:add_tab("Looped Transactions")
local checkboxwb = sub_atm:add_checkbox("Transfer Wallet Money To Bank")
local checkbox1m = sub_transaction:add_checkbox("1M Loop")
local sameline = sub_transaction:add_sameline()
local checkbox50k = sub_transaction:add_checkbox("50K Loop")
local sub_transactionL = tab:add_tab("Limited Transactions")
script.register_looped("1mtransaction", function(script)
if checkbox1m:is_enabled() then
self:TriggerTransaction(0x615762F1)
end
end)
script.register_looped("50ktransaction", function(script)
if(checkbox50k:is_enabled()) then
self:TriggerTransaction(0x610F9AB4)
end
end)
script.register_looped("walletbank", function(script)
if(checkboxwb:is_enabled()) then
NETSHOPPING.NET_GAMESERVER_TRANSFER_WALLET_TO_BANK(self:GetCharacter(), MONEY.NETWORK_GET_VC_WALLET_BALANCE(self:GetCharacter()))
end
end)
for _, stealth in ipairs(self:GetTransactionList()) do
sub_transactionL:add_button(stealth.label, function()
self:TriggerTransaction(stealth.hash)
end)
end
end
TransactionManager.new():Init()