Garry's Mod Leaks

DarkRP NPC Shop

Submitted by georgemare, , Thread ID: 166991

Thread Closed
georgemare
Newbie
Level:
0
Reputation:
0
Posts:
14
Likes:
1
Credits:
30
14-04-2020, 01:50 PM
#1
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.
Description
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
Glock 18
MP5
M16 Rifle
Fiveseven Pistol
Watermelon (HP Item)
Noodles (Armor Item)
Pistol Ammo
SMG Ammo
Shotgun Ammo
Installation
Extract the folder "darkrpnpcshop" to your addons folder.
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.


download

https://anonymousfiles.io/xXgKhGXG/
This hidden content has been reported as still working 0 times this month.
1 times in total

RE: DarkRP NPC Shop

leleaker
Lurker
Level:
0
Reputation:
0
Posts:
2
Likes:
0
Credits:
2
29-04-2020, 04:41 PM
#2
Thank for this addon , i really need it to do tests

Users browsing this thread: 1 Guest(s)