-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDaHood RAM Integration.lua
88 lines (53 loc) · 1.99 KB
/
DaHood RAM Integration.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
--[[
This is a addon that sets your DaHood Cash as description in your Roblox Account Manager
-> If you think I am cookie logging your accounts just read the code its fucking open source
made by chiiicken#3436 with the official RAM Account API
]]--
--[[
-- CHANGELOG --
07/11/2022 updated script loader: Script doesn't throws errors anymore when using autoexecute
07/20/2022 cleaned up some code ;; Replaced deprecated luau methods ;; added message on roblox load ;; showing dahood loading message only when dahood is not loaded
-- CHANGELOG --
]]--
--[[
IF THE SCRIPT IS NOT WORKING THEN MAKE SURE TO COPY THE FOLLOWING SETTINGS IN YOUR "RAMSettings.ini" FILE !!!
[Developer]
DevMode=false
EnableWebServer=true
[WebServer]
WebServerPort=7963
AllowGetCookie=false
AllowGetAccounts=true
AllowLaunchAccount=true
AllowAccountEditing=true
EveryRequestRequiresPassword=false
]]--
-- Script Loader
if not game:IsLoaded() then
print("[RAMStats] Waiting for Roblox to load...")
game.Loaded:Wait()
end
if game:GetService("Players").LocalPlayer:FindFirstChild("DataFolder") == nil then
print("[RAMStats] Waiting for DaHood to load...")
repeat task.wait()
until game:GetService("Players").LocalPlayer:FindFirstChild("DataFolder") ~= nil
print("[RAMStats] Script ready.")
end
-- Main script
local RAMAccount = loadstring(game:HttpGet("https://raw.githubusercontent.com/ic3w0lf22/Roblox-Account-Manager/master/RAMAccount.lua"))()
local MyAccount = RAMAccount.new(game:GetService'Players'.LocalPlayer.Name)
function format(amount)
local formatted = amount
while true do
formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1.%2')
if (k==0) then
break
end
end
return formatted
end
if MyAccount then
print("[RAMStats] Updated RAM description")
MyAccount:SetDescription("$"..format(game:GetService("Players").LocalPlayer:FindFirstChild("DataFolder").Currency.Value))
return
end