-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathinit.lua
More file actions
53 lines (45 loc) · 1.09 KB
/
init.lua
File metadata and controls
53 lines (45 loc) · 1.09 KB
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
FM = {}
function Error(str, ...)
if ... then
print("^7(^1ERROR^7) "..string.format(str, ...).."^7")
else
print("^7(^1ERROR^7) "..str.."^7")
end
end
function Success(str, ...)
if ... then
print("^7(^2SUCCESS^7) "..string.format(str, ...).."^7")
else
print("^7(^2SUCCESS^7) "..str.."^7")
end
end
function Debug(str, ...)
if not Settings.debug then return end
if ... then
print("^7(^3DEBUG^7) "..string.format(str, ...).."^7")
else
print("^7(^3DEBUG^7) "..str.."^7")
end
end
function Warning(str, ...)
if not Settings.warning then return end
if ... then
print("^7(^3WARNING^7) "..string.format(str, ...).."^7")
else
print("^7(^3WARNING^7) "..str.."^7")
end
end
function Update(str, ...)
if ... then
print("^7(^6UPDATE^7) "..string.format(str, ...).."^7")
else
print("^7(^6UPDATE^7) "..str.."^7")
end
end
if not IsDuplicityVersion() then
RegisterNUICallback('fetchSettings', function(data, cb)
cb({
settings = Settings
})
end)
end