Garry's Mod Leaks

Q Menu [DarkRP]

Submitted by QuzzX, , Thread ID: 45151

Thread Closed
QuzzX
Anime Lover ;3
Prime
Level:
0
Reputation:
12
Posts:
85
Likes:
211
Credits:
1.06K
25-08-2017, 09:03 PM
This post was last modified: 28-08-2017, 05:18 PM by QuzzX
#1
-----------------------------------------------------




















-----------------------------------------------------
Heya! Let's turn to the question, what is this Q Menu?
[img]https://pp.userapi.com/c840431/v84043160...GutmIY.jpg[img]
As we can see, this file lua adds a new menu when pressing Q. For ordinary users, only this menu will be visible, but to players with the privilege of "superadmin" and "admin", everything will be visible! It's easy to set up.


Installation

1. Download the file
2. Transfer to the desired folder
(garrysmod/lua/autorun)
3. Customize
4. Done!



Settings

1. Prophets:

How to set up the props? As easy as installing
Example:
Props_1 [103] = "models / XQM / cylinderx1medium.mdl"

This is the last prop in 1 office, how to do more? Easily! Copy, paste below, it turns out like this
Props_1 [103] = "models / XQM / cylinderx1medium.mdl"
Props_1 [103] = "models / XQM / cylinderx1medium.mdl"

Now we replace 103 by 104
Props_1 [103] = "models / XQM / cylinderx1medium.mdl"
Props_1 [104] = "models / XQM / cylinderx1medium.mdl"

And in the game itself, we poke on prop, copy it, and paste, it turns out approximately like this
Props_1 [103] = "models / XQM / cylinderx1medium.mdl"
Props_1 [104] = "models / props_phx / construct / metal_wire_angle180x1.mdl"

That's all, you added prop



2. Separation
How to add a division? Even easier!
Example:

Buytable ["1) Building:"] = {}
Buytable ["1) Building:"]. Model = Props_1
Buytable ["1) Building:"] Data = Props_1
buytable ["2] Basic:"] = {}
Buytable ["2] Basic:"]. Model = Props_3
Buytable ["2] Basic:"]. Data = Props_3
buytable ["3] For homeless:"] = {}
buytable ["3] For homeless:"]. Model = Props_4
Buytable ["3] For homeless:"]. Data = Props_4

That's what we have on the standard, how to add another division?
Like this!

Copy and paste
Buytable ["1) Building:"] = {}
Buytable ["1) Building:"]. Model = Props_1
Buytable ["1) Building:"] Data = Props_1
Buytable ["1) Building:"] = {}
Buytable ["1) Building:"]. Model = Props_1
Buytable ["1) Building:"] Data = Props_1

Now replace the name
Buytable ["1) Building:"] = {}
Buytable ["1) Building:"]. Model = Props_1
Buytable ["1) Building:"] Data = Props_1
Buytable ["2] Easy:"] = {}
buytable ["2] Easy:"]. Model = Props_1
Buytable ["2] Easy:"]. Data = Props_1

And change the number of props
Buytable ["1) Building:"] = {}
Buytable ["1) Building:"]. Model = Props_1
Buytable ["1) Building:"] Data = Props_1
Buytable ["2] Easy:"] = {}
Buytable ["2] Easy:"]. Model = Props_2
Buytable ["2] Easy:"]. Data = Props_2

That's all. Now I'll show you how to add props to this division, yes exactly! Just copy the upper code
Props_1 [104] = "models / XQM / cylinderx1medium.mdl"

And rework, change the number of the
Props_2 [104] = "models / XQM / cylinderx1medium.mdl"

Since this will be the first prop, then we will change the number! (because the first prop in the list, and should go also. Example: 1 prop, 2 prop, etc.)
Props_2 [1] = "models / XQM / cylinderx1medium.mdl"

And change the model
Props_2 [1] = "models / props_lab / blastdoor001b.mdl"


Now we have it

Buytable ["1) Building:"] = {}
Buytable ["1) Building:"]. Model = Props_1
Buytable ["1) Building:"] Data = Props_1
Buytable ["2] Easy:"] = {} (NEW)
buytable ["2] Easy:"]. Model = Props_2 (NEW)
Buytable ["2] Easy:"]. Data = Props_2 (NEW)
buytable ["2] Basic:"] = {}
Buytable ["2] Basic:"]. Model = Props_3
Buytable ["2] Basic:"]. Data = Props_3
buytable ["3] For homeless:"] = {}
buytable ["3] For homeless:"]. Model = Props_4
Buytable ["3] For homeless:"]. Data = Props_4

And in the same section we added prop



3. Visibility?
How to make the moderator see the "Weapons" section and the other? Here's how! (With each number everything is easier and easier)
Example:

We see this line
local function RemoveSandboxTabs ()
Local AccsesGroup = {"superadmin", "admin"}
local tabstoremove = {
language.GetPhrase ("spawnmenu.content_tab"),
language.GetPhrase ("spawnmenu.category.npcs"),
language.GetPhrase ("spawnmenu.category.entities"),
Language.GetPhrase ("spawnmenu.category.weapons"),
Language.GetPhrase ("spawnmenu.category.vehicles"),
Language.GetPhrase ("spawnmenu.category.postprocess"),
language.GetPhrase ("spawnmenu.category.dupes"),
Language.GetPhrase ("spawnmenu.category.saves")
}

Here we just add the name of the privilege, and that's it!

Local AccsesGroup = {"superadmin", "admin", "moderator"}



4. The name of the menu
It's even easier!
Example:
Just on this line change the name
Spawnmenu.AddCreationTab ("Permited Props", CreateContentPanel, "icon16 / application_view_tile.png", 4)

Instead of "Permides Props", we put our name, and it turns out so
Spawnmenu.AddCreationTab ("Lacquer would be QuzzX", CreateContentPanel, "icon16 / application_view_tile.png", 4)


Okay, we have setting our Q Menu!




Content locked
This content has been locked. Please login or register in order to unlock it.

The Decryption key:
!v9c6qnTemOKh2oeygTdW2u1f0iVM7hoT3uK4c5q8WPI


Don't be a leecher, leave a like Wink
There are mistakes? Email me at pm and I will update the link
This hidden content has been reported as still working 0 times this month.
1 times in total
1

RE: Q Menu [DarkRP]

lowninja51
Novice
Level:
0
Reputation:
0
Posts:
49
Likes:
1
Credits:
16
26-08-2017, 01:47 PM
#2
It was necessary to make the screenshots at least)

RE: Q Menu [DarkRP]

xsubee
Closed Account
Level:
0
Reputation:
0
Posts:
35
Likes:
0
Credits:
0
26-08-2017, 03:25 PM
#3
looks great gonna test it

RE: Q Menu [DarkRP]

QuzzX
Anime Lover ;3
Prime
Level:
0
Reputation:
12
Posts:
85
Likes:
211
Credits:
1.06K
OP
26-08-2017, 05:27 PM
This post was last modified: 26-08-2017, 05:28 PM by QuzzX
#4
26-08-2017, 01:47 PM
lowninja51 Wrote:
It was necessary to make the screenshots at least)

Yep, i had bugs right now with nulled...
Well, now I think everything, filled in the screenshots on the site

RE: Q Menu [DarkRP]

jipakoreyi
Newbie
Level:
0
Reputation:
0
Posts:
12
Likes:
0
Credits:
15
26-08-2017, 08:48 PM
#5
does anyone know if this works :monkey: :monkey2:

RE: Q Menu [DarkRP]

lowninja51
Novice
Level:
0
Reputation:
0
Posts:
49
Likes:
1
Credits:
16
27-08-2017, 08:07 AM
#6
26-08-2017, 05:27 PM
QuzzX Wrote:
Yep, i had bugs right now with nulled...
Well, now I think everything, filled in the screenshots on the site

Very good.
Thank you!

RE: Q Menu [DarkRP]

Guest
Level:
0
Posts:
N/A
Likes:
0
Credits:
0
27-08-2017, 10:31 AM
#7
Very good addon, thanks!

RE: Q Menu [DarkRP]

QuzzX
Anime Lover ;3
Prime
Level:
0
Reputation:
12
Posts:
85
Likes:
211
Credits:
1.06K
OP
28-08-2017, 12:42 PM
#8
27-08-2017, 10:31 AM
Mopo3 Wrote:
Very good addon, thanks!

Yep

RE: Q Menu [DarkRP]

Guest
Level:
0
Posts:
N/A
Likes:
0
Credits:
0
28-08-2017, 01:53 PM
#9
Nice addon, thank you champ.

RE: Q Menu [DarkRP]

01-06-2018, 09:15 PM
#10
? , RUSSIAN HELO ?

Users browsing this thread: 1 Guest(s)