Garry's Mod Leaks
NPC SHOP (DARK RP)
Submitted by masonmullins63, 30-04-2020, 02:21 PM, Thread ID: 169565
Thread Closed
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.
[b]Item List[/b]
Glock 18
MP5
M16 Rifle
Fiveseven Pistol
Watermelon (HP Item)
Noodles (Armor Item)
Pistol Ammo
SMG Ammo
Shotgun Ammo
[b]Installation[/b]
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.
[b]Customize[/b]
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.
(copy pasted from the gmod store just here as a heads up^^^)
https://www.gmodstore.com/market/view/290
https://anonymousfiles.io/xXgKhGXG/
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.
[b]Description[/b]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.
[b]Item List[/b]
Glock 18
MP5
M16 Rifle
Fiveseven Pistol
Watermelon (HP Item)
Noodles (Armor Item)
Pistol Ammo
SMG Ammo
Shotgun Ammo
[b]Installation[/b]
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.
[b]Customize[/b]
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.
(copy pasted from the gmod store just here as a heads up^^^)
https://www.gmodstore.com/market/view/290
https://anonymousfiles.io/xXgKhGXG/
RE: NPC SHOP (DARK RP)
01-05-2020, 04:22 PM
#2 garbage
dont downland this pease of crap bleayt!!!!!!!
dont downland this pease of crap bleayt!!!!!!!
RE: NPC SHOP (DARK RP)
30-08-2022, 06:40 PM
#3 This gamemode has alot features i'm sure you will like this one Smile i'm sure so many sa-mp players know this script this gamemode is created by Pedro ElArma.
Users browsing this thread: 1 Guest(s)