File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,3 @@ function getPlayerFromNick(nick)
84
84
end
85
85
return false
86
86
end
87
-
88
- function stripColorCodes (text )
89
- return string.gsub (text , " #%x%x%x%x%x%x" , " " )
90
- end
Original file line number Diff line number Diff line change 78
78
<script src =" client/widgets/admin_report.lua" type=" client" />
79
79
<script src =" client/widgets/admin_weapon.lua" type=" client" />
80
80
81
+ <script src =" shared/utils.lua" type =" shared" />
82
+
81
83
<html src =" http/screenshots.htm" />
82
84
<html src =" http/screenshot.htm" />
83
85
Original file line number Diff line number Diff line change
1
+ --[[ **********************************
2
+ *
3
+ * Multi Theft Auto - Admin Panel
4
+ *
5
+ * client/admin_coroutines.lua
6
+ *
7
+ * Original File by lil_Toady
8
+ *
9
+ **************************************]]
10
+
11
+ function stripColorCodes (str )
12
+ local oldLen
13
+ repeat
14
+ oldLen = str :len ()
15
+ str = str :gsub (' #%x%x%x%x%x%x' , ' ' )
16
+ until str :len () == oldLen
17
+ return str
18
+ end
You can’t perform that action at this time.
0 commit comments