I want to change the IN_ZOOM to a KEY_V (Input Enum) I’ve been looking through the wiki and,well, google but it seems like I’m completely overwhelmed and clueless. Could anyone point me in the right direction to rebind this TTT traitor chat to KEY_V?
Here are the main pieces of code:
function GM:KeyPress(ply, key) if not IsFirstTimePredicted() then return end if not IsValid(ply) or ply != LocalPlayer() then return end if key == IN_USE and ply:IsActiveTraitor() then timer.Simple(0.05, function() RunConsoleCommand("+voicerecord") end) end end
if client == ply then if client:IsActiveTraitor() then if (not client:KeyDown(IN_USE)) and (not client:KeyDownLast(IN_USE)) then client.traitor_gvoice = true RunConsoleCommand("tvog", "1") else client.traitor_gvoice = false RunConsoleCommand("tvog", "0") end end