Garry's Mod Leaks
Q Menu [DarkRP]
Submitted by QuzzX, 25-08-2017, 09:03 PM, Thread ID: 45151
Thread Closed
RE: Q Menu [DarkRP]
01-06-2018, 11:26 PM
#11 merci beaucoup vraiment cool genre c'est un truc de ouf comment je l'attendait cet addon
RE: Q Menu [DarkRP]
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)1
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)2
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)3
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)4
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)5
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)7
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)56
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)11
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)23
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)15
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)1
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)2
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)3
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)4
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)5
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)7
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)56
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)11
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)23
local function removeOldTables()
if LocalPlayer():IsSuperAdmin() then return end
for k, v in pairs( g_SpawnMenu.CreateMenu.Items ) do
if (v.Tab:GetText() == language.GetPhrase("spawnmenu.category.npcs") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.entities") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.weapons") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.vehicles") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.postprocess") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.dupes") or
v.Tab:GetText() == language.GetPhrase("spawnmenu.category.saves")) then
g_SpawnMenu.CreateMenu:CloseTab( v.Tab, true )
removeOldTables()
end
end
end
hook.Add("SpawnMenuOpen", "blockmenutabs", removeOldTables)15
Users browsing this thread: 1 Guest(s)