Garry's Mod Leaks

[LEAK] RP Name Menu [Now supports FR, DE, LT languages] [NEW]

Submitted by Ebygor, , Thread ID: 66107

Thread Closed
21-12-2017, 12:12 PM
This post was last modified: 21-12-2017, 12:13 PM by Ebygor
#1
RP Name Menu [Now supports FR, DE, LT languages]
[Image: 13cf265074fc0aa217fb14a12dffd795.png]
[Image: 62d1e1dbbae93804e22c3600ca50ad26.png&w=1...output=jpg][Image: 919368b561a607b1796021d51aeb5bf2.png&w=1...output=jpg][Image: a8b2eeaa61b0b456c63b906758c1d9b0.png&w=1...output=jpg]
Description



This addon adds a roleplay menu. So whenever someone joins your server without a roleplay name, they are to enter one.

It is super easy to install and works well. Supports almost all versions of DarkRP.



*Works with all DarkRP versions

*Has an NPC to change names if enabled

*Has a word blacklist

*Admins can force name change by right clicking players with context© menu

*Has 3 type of skins to chose from - Default, Poly Blur, Flat Blur (check images)






Installation



1.) Open the zip file.



2.) Extract it to your addons folder.



3.) Configuration.

cl_rpnamemenu.lua

On the first line there you can change the community name displayed on the menu. Changing it to local CommunityName = "CoderHire Community" for example would make it display "Welcome to CoderHire Community" at the top of the menu.



On the third line you can choose which skin to use. If it's local Skin = 1 then the default skin will be used. Change the number to use other skins, such as 2 for Poly Blur skin or 3 for Flat Blur skin.



rpnamemenu.lua

If you want to add extra words to the phrase blacklist or disable /rpname(DarkRP 2.6+ only). Add extra words in the 5rd line where it says BlackList = {... for blacklisting. To disable /rpname, change DisableDarkRPNameChatCommand from false to true.



To enable the Name Change NPC change RPNAME_EnableNPC from false to true. Also change RPNAME_NameChangePrice to the price you want it to cost for a change.

When it's enabled go to the place you want your NPC to stand and look at the direction too. Type in console rpname_setpos "models/Humans/Group02/male_02.mdl". Replace the model with other models if you please.



Language localisation

If you want to change the language then open up the sh_rpnamemenu.lua file and on line 1 change local language = "EN" to another one, like "FR" for French for example. Languages supported by default: EN - English, FR - French, DE - German, LT - Lithuanian. You can add other languages there, just copy the EN language table and rename it to whichever language you are translating.



4.) You're done. Enjoy!





FAQ



The script does not seem to be working?
-When you join the menu will not pop up if you already had an rp name before installing the script. One way to test would be to enable /rpname command in the config file and change your name to "NULL", after that rejoin and the menu should pop up. Or have a friend join who doesn't have an rp name set already.

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


This hidden content has been reported as still working 0 times this month.
1 times in total
This hidden content has been reported as not working 0 times this month.
1 times in total
The link in this hidden content has been reported as down 0 times this month.
1 times in total

Users browsing this thread: 11 Guest(s)