Garry's Mod Leaks
DarkRP NPC Shop
Submitted by fredit1337, 30-01-2018, 07:34 AM, Thread ID: 72239
Thread Closed
DarkRP Support
DarkRP 2.4.3
DarkRP 2.5.0
DarkRP 2.6
Other custom versions of DarkRP are not supported, and don't count on my support if you're using a custom version of DarkRP with modified core features.
Description
This addon adds an npc shop to your server. Instead of having items purchased via the F4 menu (you can still have that if you want, this addon doesn't effect that), you will now have a realistic npc shop, that can sell anything you'd like.
The NPC can sell anything, and it can easily be customized to sell anything you want. The addon has a simply way of adding new items. It might require a slightly bit of lua knowledge to add some more advanced items, but I've added a good 9 items to begin with, which gives you a good idea of how to add new items. I will accept requests of items if I have time. Feel free to put new ideas for items in the comment section, and I'll review them.
The display feature gives the buyer a great opportunity to see a full preview of the item. The menu displays a spinning item, shows name and price.
Item List
The default items are:
This addon supports both DarkRP 2.4.3 and DarkRP 2.5.0.
You will find the version for DarkRP 2.4.3 here:
DarkRP NPC Shop/Store 2.4.3/DarkRP NPC Shop
Extract the last DarkRP NPC Shop to your addons.
You will find the version for DarkRP 2.5.0 here:
DarkRP NPC Shop/Store 2.5.0/DarkRP NPC Shop
Extract the last DarkRP NPC Shop to your addons.
Once the addon is extracted into your addons folder, you will have to position the NPC.
All you have to do now is launch your server, find a fitting spot for the NPC, and type "shopnpc_setpos uniquename" in console.
With the latest update of all my scripts I have added support for multiply NPCs.
You place an NPC as before, but you must make a space, and put an unique name. This will be the filename.
This new system also introduces map support. So now you can have as many NPCs as you want, on as many maps as you want.
All of this without having to make a new position every time you switch map.
This also adds the option to remove an NPC. Just type "shopnpc_remove filename" in console to remove the NPC with that name.
Or you can go to the directory craphead_scripts/shopnpc_system/map_name, and remove it manually.
Customize
To add more items to the npc shop, head over to lua/entities/npc_shop/shared.lua
In the file you will find the table with the items. There are all the default items, as well as a item in the top that I've commented on every line to help you understand how to easily add new items.
Errors & Support
If you find any problems with the script, please PM me with details of the situation and a copypaste of the error in console. Additionally, i rarely give additional support for my scripts. If there is a general error with the script, an error that you can prove happens, and is my fault. Send me a PM here on CoderHire. We'll figure it out there, and perhaps a chat on Steam after I've responded to your PM. I am also not interested in modifying you a custom version of the addon. Also not upon payment. Sorry!
Conflicting addons is not to be said if I will support that or not. This is something I will decide upon confrontation about a conflicting addon. If you have some sort of proof that an addon is conflicting with my addon, please send me a PM with the details you might have.
Thank you!
DarkRP 2.4.3
DarkRP 2.5.0
DarkRP 2.6
Other custom versions of DarkRP are not supported, and don't count on my support if you're using a custom version of DarkRP with modified core features.
Description
This addon adds an npc shop to your server. Instead of having items purchased via the F4 menu (you can still have that if you want, this addon doesn't effect that), you will now have a realistic npc shop, that can sell anything you'd like.
The NPC can sell anything, and it can easily be customized to sell anything you want. The addon has a simply way of adding new items. It might require a slightly bit of lua knowledge to add some more advanced items, but I've added a good 9 items to begin with, which gives you a good idea of how to add new items. I will accept requests of items if I have time. Feel free to put new ideas for items in the comment section, and I'll review them.
The display feature gives the buyer a great opportunity to see a full preview of the item. The menu displays a spinning item, shows name and price.
Item List
The default items are:
- Glock 18
- MP5
- M16 Rifle
- Fiveseven Pistol
- Watermelon (HP Item)
- Noodles (Armor Item)
- Pistol Ammo
- SMG Ammo
- Shotgun Ammo
This addon supports both DarkRP 2.4.3 and DarkRP 2.5.0.
You will find the version for DarkRP 2.4.3 here:
DarkRP NPC Shop/Store 2.4.3/DarkRP NPC Shop
Extract the last DarkRP NPC Shop to your addons.
You will find the version for DarkRP 2.5.0 here:
DarkRP NPC Shop/Store 2.5.0/DarkRP NPC Shop
Extract the last DarkRP NPC Shop to your addons.
Once the addon is extracted into your addons folder, you will have to position the NPC.
All you have to do now is launch your server, find a fitting spot for the NPC, and type "shopnpc_setpos uniquename" in console.
With the latest update of all my scripts I have added support for multiply NPCs.
You place an NPC as before, but you must make a space, and put an unique name. This will be the filename.
This new system also introduces map support. So now you can have as many NPCs as you want, on as many maps as you want.
All of this without having to make a new position every time you switch map.
This also adds the option to remove an NPC. Just type "shopnpc_remove filename" in console to remove the NPC with that name.
Or you can go to the directory craphead_scripts/shopnpc_system/map_name, and remove it manually.
Customize
To add more items to the npc shop, head over to lua/entities/npc_shop/shared.lua
In the file you will find the table with the items. There are all the default items, as well as a item in the top that I've commented on every line to help you understand how to easily add new items.
Errors & Support
If you find any problems with the script, please PM me with details of the situation and a copypaste of the error in console. Additionally, i rarely give additional support for my scripts. If there is a general error with the script, an error that you can prove happens, and is my fault. Send me a PM here on CoderHire. We'll figure it out there, and perhaps a chat on Steam after I've responded to your PM. I am also not interested in modifying you a custom version of the addon. Also not upon payment. Sorry!
Conflicting addons is not to be said if I will support that or not. This is something I will decide upon confrontation about a conflicting addon. If you have some sort of proof that an addon is conflicting with my addon, please send me a PM with the details you might have.
Thank you!
Users browsing this thread: 2 Guest(s)