I'm creating an NPC using a custom model, and it works, but when I spawn it it just spawns with a zombie model. Here's my code:
[lua]
local Category = "Chads NPCs"
local NPC = { Name = "Zombie Metro", --The name shows in the spawn menu and when I undo.
Class = "npc_zombie", --This seems to be the issue.
Model = "models/zombie/cpassic.mdl", --This model is in the correct place
Category = Category }
list.Set( "NPC", "4", NPC ) --This is alright for now.
[/lua]
Any help?
Try changing the model directory to "models/cpassic.mdl".
Change the real directories too.
Lol, I thought it was funny when I saw your name on the reply.
And yeah, I'll post my results when I finish that.
[editline]01:58AM[/editline]
Nope, that didn't fix it either.
[editline]02:11AM[/editline]
Please I really want to make this but Garry's Mod is being stupid :pwn:
Change "list.Set("NPC", "4", NPC)" to "list.Set("npc_zombie", "4", NPC)"
that made it not appear in the spawn menu anymore :(
Sorry, you need to Log In to post a reply to this thread.