Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- file.OldRead = file.OldRead or file.Read
- FILE_READ_MONITOR = true
- local dont_show = {
- "pac2_outfits",
- "adv_duplicator",
- "nero/users",
- "jailed_players",
- "pac_bans",
- }
- local function CheckPath(str)
- for k,v in pairs(dont_show) do
- if str:find(v, nil, true) then
- return true
- end
- end
- end
- function file.Read(path, uh)
- if FILE_READ_MONITOR and CheckPath(path) then
- debug.Trace()
- print(path, uh)
- end
- return file.OldRead(path, uh)
- end
Advertisement
Add Comment
Please, Sign In to add comment