samuelmaddock / gm-mediaplayer

:tv: Garry's Mod media player which features synchronized streaming media services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need help with workshop version

AMD-NICK opened this issue · comments

commented

I don't want to use GitHub version on my server, but I want to give access for server staff to remove videos from the mediaplayer queue. How can I override MEDIAPLAYER:IsPlayerPrivileged(ply) method in this case? Maybe u will add hooks or something?

My Steam discussion

Sorry, I don't follow Steam discussions as much as I should. I'll add a hook for it with the following usage:

hook.Add( "MediaPlayerIsPlayerPrivileged", "My custom permissions", function( mp, ply )
	return ply:IsAdmin()
end )

Published 7e95bbc to workshop