Creating NPC Help.

Ok, I created some NPCs long ago, correctly, I followed someones tutorial, saved my first one correctly, it worked and have saved the rest correctly aswell, can someone explain why they are not working?
The path is Add-ons—> My NPCs—> lua—> autorun—> NPCs.lua
Here’s what the file looks like:


local Category = "My NPCs"


local NPC = { Name = "Ronald",
Class = "npc_combine_s",
Model = "models/humans/group01/ronaldm.mdl",
Health = "100",
Category = Category }

list.Set( "NPC", "npc_ronald", NPC )

local Category = "My NPCs"


local NPC = { Name = "Evil Stalin",
Class = "npc_combine_s",
Model = "models/suka.mdl",
Health = "100",
Category = Category }

list.Set( "NPC", "npc_evilstalin", NPC )

local Category = "My NPCs"


local NPC = { Name = "Good Hitler",
Class = "npc_citizen",
Model = "models/hitlr.mdl",
Health = "100",
KeyValues = { citizentype = 4 },
Category = Category }

list.Set( "NPC", "npc_goodhitler", NPC )

local Category = "My NPCs"


local NPC = { Name = "Good Stalin",
Class = "npc_citizen",
Model = "models/suka.mdl",
Health = "100",
KeyValues = { citizentype = 4 },
Category = Category }

list.Set( "NPC", "npc_goodstalin", NPC )

local Category = "My NPCs"


local NPC = { Name = "Evil Hitler",
Class = "npc_combine_s",
Model = "models/hitlr.mdl",
Health = "100",
Category = Category }

list.Set( "NPC", "npc_evilhitler", NPC )

local Category = "My NPCs"


local NPC = { Name = "Darth Vader",
Class = "npc_combine_s",
Model = "models/starwars/vader.mdl",
Health = "100",
Category = Category }

list.Set( "NPC", "npc_darthvader", NPC )

local Category = "My NPCs"


local NPC = { Name = "PMC Soldier",
Class = "npc_citizen",
Model = "models/PMC/PMC_3/pmc__01.mdl",
Health = "100",
KeyValues = { citizentype = 4 },
Category = Category }

list.Set( "NPC", "npc_pmcsoldier", NPC )



So can someone explain why they are not showing up in the NPC menu?

Not Add-Ons, its addons.
Are you sure there is a info.txt in the My NPCs folder?

Oh dang I don’t, how do I add one and what do I put in it?

Just copy one off another addon and change a few lines, like author and title.

Thank you, they have worked :smiley: .