Garry's Mod Leaks
DarkRP NPC Shop
Submitted by WiredFox1, 12-12-2017, 03:57 AM, Thread ID: 64792
Thread Closed
GmodStore:
https://www.gmodstore.com/scripts/view/2...p-npc-shop
Download(MEGA):
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.
https://www.gmodstore.com/scripts/view/2...p-npc-shop
Download(MEGA):
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:
- 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.
Users browsing this thread: 1 Guest(s)