Sample of trying to call the menu:
Code: Select all
from commands.client import ClientCommand
from players.helpers import index_from_playerinfo
from messages import VGUIMenu
@ClientCommand('!msg')
def test(playerinfo, command):
msg = VGUIMenu(name='motd', show=1, subkeys={'title': "Test", 'type': 2, 'msg': 'http://www.google.com'})
msg.send(index_from_playerinfo(playerinfo))
Not sure if there's some modification needed to the tf.ini file, or the way i'm trying to call the menu, but the functionality definitely exists for this type of menu in TF2, as it is possible with ES and SM.
Thanks for any help