mirror of
https://github.com/samuelmaddock/gm-mediaplayer.git
synced 2025-03-04 03:03:02 -05:00
Add MediaPlayerNotifyPlayer hook for overriding notifications
This commit is contained in:
parent
7e95bbc57e
commit
11fb49df3f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user