Hey, my npc doesnt exist in spawn menu, help me!
code:
local Category = "MyCategory",
local NPC = { Name = "NPCName",
Class = "npc_combine_s",
Model ="models/combinesoldier.mdl", << I know, model is wrong but its only for example!!!!
Squadname = "combine",
Numgrenades = "13",
Health = "100",
Category = Category }
list.Set( "NPC", "npc_newsoldier", NPC )
//Code generated by Gmod NPC Creator Beta by JakusPL
Where do you put it?
myaddon/lua/autorun
addons/myaddon/lua/autorun/myfile.lua?
In that case you are missing AddCSLuaFile().
Download this program and check is that works.
link: [url]http://www.garrysmod.org/downloads/?a=view&id=135587[/url]
[QUOTE=JakusPL;46504596]Download this program and check is that works.
link: [url]http://www.garrysmod.org/downloads/?a=view&id=135587[/url][/QUOTE]
Lol what?
[QUOTE]WARNING: This file has been reported! It may be dangerous! Download at your own risk!
If this is your file, don't waste your time editing the description to say the file is safe, if you do your file will be automatically deleted when it gets checked.[/QUOTE]
[QUOTE]Uploaded 8 minutes ago - 0 Downloads (0 this week) - Uploaded by JakusPL[/QUOTE]
[Robotboy]
Yes i place it there but i dont understand.
[circuitbawx]
I dont know why its reported but it's virus free, i scanned it with Avast!
[editline]16th November 2014[/editline]
[url]http://www.garrysmod.org/downloads/?a=view&id=135588[/url]
Post the source.
It says that because the archive contains an .exe. Why do you even bother with the .exe?
I see you dont understand. I dont want to pair my code Generator with autorun file. My program auto generate this file but this file isnt working. When I put it (autorun.lua) to my addon folder/lua/autorun
the npc doesn't show in the spawn menu but theres no any error on the console. (Sorry for bad english)
Sorry, you need to Log In to post a reply to this thread.