Add MediaPlayerNotifyPlayer hook for overriding notifications

This commit is contained in:
samuelmaddock 2017-07-15 19:10:25 -04:00
parent 7e95bbc57e
commit 11fb49df3f

View File

@ -583,5 +583,7 @@ function MEDIAPLAYER:NotifyListeners( msg )
end
function MEDIAPLAYER:NotifyPlayer( ply, msg )
ply:ChatPrint( msg )
if not hook.Run( "MediaPlayerNotifyPlayer", self, ply, msg ) then
ply:ChatPrint( msg )
end
end