Garry's Mod

Garry's Mod

172 ratings
Armor & Health NPC
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: NPC
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
2.360 KB
25 Oct, 2014 @ 8:06am
26 Oct, 2014 @ 12:37am
4 Change Notes ( view )

Subscribe to download
Armor & Health NPC

Description
This is a armor and health selling npc. That only works for Darkrp 2.5.x.

Create a new lua file in garrysmod/lua/autorun/ name it example armorhealthnpctable and then put the code below into it.
ArmorHealth = {} -- Model path ArmorHealth.Models = "models/odessa.mdl" -- Health cost ArmorHealth.healthcost = 120 -- Amount of health given ArmorHealth.healthgive = 100 -- Armor Cost ArmorHealth.Armorcost = 120 -- Amount of armor given ArmorHealth.Armorgive = 100 -- Spawn a npc that can be moved. If false then it won't ArmorHealth.AutoSpawnNpc = false -- NPC Spawn Pos will work if above is true ArmorHealth.npc_pos = Vector( -1780, -677, -148 ) -- NPC Spawn Angle will work if autospawnnpc = true ArmorHealth.npc_ang = Angle( 0, -90, 0 )



Want me to add something more to it? Just say it in the comments or add me.
9 Comments
wahoo 25 Apr, 2017 @ 5:35am 
it does not work I can not spawn it
^1Brandon 20 Nov, 2015 @ 7:23pm 
when i spawn it it show no model why ?
DankNessGotMemes 13 Nov, 2015 @ 6:34pm 
I can assure you theres no backdoor guys its completely safe for a server it was used on a server that had 30+ players most days and if it had a back door pretty sure they wouldn't have used it.
Pancake  [author] 12 Nov, 2015 @ 6:15pm 
No it doesn't.
Mxrk 8 Nov, 2015 @ 7:32am 
Has a backdoor in this script.
Pancake  [author] 30 Apr, 2015 @ 2:37pm 
You set the spawn Position
bigmanting 25 Apr, 2015 @ 11:34pm 
where does the NPC spawn?
Pancake  [author] 26 Oct, 2014 @ 1:48am 
Checkout the video
chicarito101 25 Oct, 2014 @ 6:04pm 
what is it like?!