Hey Facepunch, been looking through and working on this for a little with no luck.
I have been trying to stop DarkRP from notifying everyone when someone switches a job.
local to_disable = {
"has been made a",
}
timer.Simple(2, function()
old_notify_all = old_notify_all or DarkRP.notifyAll
function DarkRP.notifyAll(type_, length, msg)
for k,v in pairs(to_disable) do
if string.find(string.lower(msg), v) then return end
end
return old_notify_all(type_, length, msg)
end
end)
not exactly sure what iām doing wrong or how to fix it, would appreciate some guidance