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

Users browsing this thread: 6 Guest(s)