As someone who doesn't have a computer that can handle 3rd party recording software, this was extremely helpful. I can now catch micspammers and loopholers much easier than before, and it still takes nothing to run Spoiler: Step 1 First, go here As you can see, I have a df.lua file saved at the bottom. Spoiler: Step 2 Open up a notepad and paste the following: Code: if not engine.IsPlayingDemo() then return end local function CreateVoiceVGUI() g_VoicePanelList = vgui.Create( "DPanel" ) g_VoicePanelList:ParentToHUD() g_VoicePanelList:SetPos(25, 25) g_VoicePanelList:SetSize(200, ScrH() - 200) g_VoicePanelList:SetDrawBackground(false) MutedState = vgui.Create("DLabel") MutedState:SetPos(ScrW() - 200, ScrH() - 50) MutedState:SetSize(200, 50) MutedState:SetFont("Trebuchet18") MutedState:SetText("") MutedState:SetTextColor(Color(240, 240, 240, 250)) MutedState:SetVisible(false) print("Created voice panel.") end function VOICE.Tick() end -- fix console error spam (this function previously handled voice battery; doesn't matter in demos). CreateVoiceVGUI() Save it under All Files and title it df.lua Spoiler: Step 3 To prevent the Script Errors at the top left, go to the following: Open 'errors' in Notepad All I did was change Code: local text = "Something is creating script errors" to Code: local text = "i" This will tell you that there are errors, but won't get in the way of a person using their mic Spoiler: Step 4 Next, open GMod and type "sv_allowcslua 1" in console Then bind a key to "lua_openscript_cl df.lua" (e.g. 'bind KP_Home "lua_openscript_cl df.lua"') Now, when you run a demo, press the key you bound and mics should appear Huge thanks to @Verified and @Agent A for these tips
Step 3 shouldn't be needed. If you're getting script errors paste the error here and I'll modify the script to account for them. EDIT: Also that change will be lost when gmod updates.
Why are you guys making the lua file in the root folder then manually executing it, just put it in lua autorun? It shouldn't affect gameplay on SGM as allowcslua would be disabled.
Step 1) Download demovoicefix.lua (credit to Yatty, not me) step 2) Navigate to your garry's mod directory Spoiler: How to get to my gmod directory 1) Right click Garry's Mod in steam and click properties 2) Click Local Files in the menu that pops up 3) Click browse local files Step 3) go to garrysmod/lua Step 4) put demovoicefix.lua in there Step 5) In Garry's Mod open your console and type Code: sv_allowcslua 1 Step 6) Load the demo. (This can be done before step 5 but is easier if done after allowing cs lua) Step 7) Open your console and type Code: lua_openscript_cl demovoicefix.lua Then in the future, you can absolutely make this a bind. You will now be able to see who is speaking - it will appear in the bottom right. Code: bind <KEY> "sv_allowcslua 1;lua_openscript_cl demovoicefix.lua" This script moves the voice boxes from the top left (where demos get plagued with script errors) to the bottom right.
Alright, thanks. I remember some error due to mic batteries or something, can't remember what script it was with though.
This should work in all Garry's Mod gamemodes. The script just see's that some nigga is talking, then goes "ok I put that nigga the bottom right". It is independent of any custom huds or anything like that on any Garry's Mod server.