Garry's Mod

How to hide q menu

Submitted by Uns0ip, , Thread ID: 86058

Thread Closed
25-04-2018, 07:08 PM
This post was last modified: 25-04-2018, 07:23 PM by Uns0ip
#1
Hello! Please help me!

I want to disableq menu on my swrp server. For example, player press Q and Qmenu does not open, but for superadmins Qmenu is normal. Help me how to do that.
Sorry for my English, I hope you understand me Shy

RE: How to hide q menu

#2
i think thats not possible, im not that expert in that. But why do you want to supress it?

RE: How to hide q menu

#3
Probably not an easy thing to disable, but there's the SpawnMenuOpen function that you could use.

RE: How to hide q menu

#4
Steam -> steamapps -> common -> Garry's Mod -> garrysmod -> gamemode -> sandbox -> gamemode -> spawnmenu -> spawnmenu.lua
[Image: onsOdLl.png]

RE: How to hide q menu

#5
In order to hide the q menu you must first remove whatever finger you have on the q button off the q button causing it to release said button then getting rid of the q menu from your screen.

RE: How to hide q menu

#6
on ttt Server is the q blocked, maybe you will findsome Thing with this info

RE: How to hide q menu

#7
In "garrysmod\gamemodes\darkrp\gamemode\cl_init.lua"

local function DisallowSpawnMenu( )
if not LocalPlayer():IsAdmin() then
return false
chat.AddText( Color( 255, 0, 0 ), "Menu reserv au staff du serveur !" )
end
end
hook.Add( "SpawnMenuOpen", "DisallowSpawnMenu", DisallowSpawnMenu)

RE: How to hide q menu

#8
25-04-2018, 07:08 PM
Uns0ip Wrote:
Hello! Please help me!

I want to disableq menu on my swrp server. For example, player press Q and Qmenu does not open, but for superadmins Qmenu is normal. Help me how to do that.
Sorry for my English, I hope you understand me Shy

next time google there are so many solutions/answers on google. and if you cant find an answer thats when you make a thread

RE: How to hide q menu

#9
i think .thats .ot poss..e, im not that ,expert in .at. B.why do.want to.sup..ss it?
mm

RE: How to hide q menu

#10
local qmenu_ranks = {
["superadmin"] = true,
["admin"] = true,
["owner"] = true,
["moderator"] = true,
["trialmod"] = true,
["headstaff"] = true,
["developer"] = true,
["headdeveloper"] = true,
["headgamemaker"] = true,
["builder"] = true,
["gamemaker"] = true,
}
hook.Add("SpawnMenuOpen", "spawn_menu_ranks", function()
local ply = LocalPlayer()
if not IsValid(ply) and qmenu_ranks[ply:GetUserGroup()] then
return false
end
end)

Users browsing this thread: 1 Guest(s)