-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathinit.lua
More file actions
36 lines (32 loc) · 878 Bytes
/
init.lua
File metadata and controls
36 lines (32 loc) · 878 Bytes
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
--[[
BY RX Scripts © rxscripts.xyz
--]]
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 Warning(str, ...)
if ... then
print("^7(^3WARNING^7) "..string.format(str, ...).."^7")
else
print("^7(^3WARNING^7) "..str.."^7")
end
end
if GetCurrentResourceName() ~= 'RxNotify' then
CreateThread(function()
Error("Please ensure that the resource name is RxNotify, changing the resource name will break the script!")
Wait(1000 * 30)
end)
else
Success("Initialized ^1" .. GetCurrentResourceName() .." ^7by ^1rxscripts.xyz")
end