I want a script that allows a user to right click someones name through the ttt scoreboard, and display a shorcut to their steam profile, as-well allows the user to copy their steam id.
[IMG]http://images.akamai.steamusercontent.com/ugc/493521193144498788/70793489D28D2FA3A7C444A431F7133A91B75A55/[/IMG]
Nice addon, wheres the download link?
Wrong forum. Try the [URL="https://facepunch.com/forumdisplay.php?f=65"]Developer Discussion[/URL] (also, try to find some code for the menu, it would help)
[editline]25th May 2016[/editline]
Actually, I just found the code for it. [URL="https://github.com/garrynewman/garrysmod/blob/451b4ff5d1aea7b9b06a8024ef706c248a79647e/garrysmod/gamemodes/terrortown/gamemode/vgui/sb_main.lua"]It's here[/URL]. The panel name is TTTScoreboard, and it gets registered on line 312. If you snoop around that code for a while, you should be able to find the part creating those boxes, and then just hook into the OnMousePressed function on the box, and check if the click was a right click, then create the DMenu.
[QUOTE=MPan1;50388161]Wrong forum. Try the [URL="https://facepunch.com/forumdisplay.php?f=65"]Developer Discussion[/URL] (also, try to find some code for the menu, it would help)
[editline]25th May 2016[/editline]
Actually, I just found the code for it. [URL="https://github.com/garrynewman/garrysmod/blob/451b4ff5d1aea7b9b06a8024ef706c248a79647e/garrysmod/gamemodes/terrortown/gamemode/vgui/sb_main.lua"]It's here[/URL]. The panel name is TTTScoreboard, and it gets registered on line 312. If you snoop around that code for a while, you should be able to find the part creating those boxes, and then just hook into the OnMousePressed function on the box, and check if the click was a right click, then create the DMenu.[/QUOTE]
Just use this, [url]https://github.com/rejax/TTT-EasyScoreboard[/url]
It is what they are using in the screenshot.
Sorry, you need to Log In to post a reply to this thread.