I was given this to use in my entity to trigger the Request Menu on ENT:Use()
if SERVER then
util.AddNetworkString("OpenReqMenu")
function ENT:Use( ply )
net.Start("OpenReqMenu")
net.WriteEntity(self)
net.Send(ply)
end
else
net.Receive("OpenReqMenu", function()
local ent = net.ReadEntity()
MediaPlayer.OpenRequestMenu(ent)
end)
end
It seems though that it returns MediaPlayer.OpenRequestMenu: Invalid media player in console and I can't get it to open the menu for the client.
I was given this to use in my entity to trigger the Request Menu on ENT:Use()
It seems though that it returns MediaPlayer.OpenRequestMenu: Invalid media player in console and I can't get it to open the menu for the client.
Is there something I'm doing wrong?