Hello there.
Im searching for someone helping me making the GUI for my NPCs.
PS. I have the NPCs i just need to set up the GUI and a spawn point for them.
(This is not just like you know NPCs its like a gundealer NPC and that)
If you think you can help me please reply here or send me a PM.
If you want someone for doing this i can also give you that. (Admin,Codes,Money,In-Game Money,Anything)
PS. I have the NPCs i just need to set up the GUI and a spawn point for them
So please help!.
Thanks.
To spawn the NPCs:
[lua]
local NPC = ents.Create("nameofnpcentity");
NPC:SetPos(Vector(0,0,0));
NPC:SetAngles(Angle(0,0,0));
NPC:Spawn();
[/lua]
Replace the Vector and Angle for the position and orientation of the NPC. I would use getpos in console to get the position and angle. It will be something like this:
setpos 12341 2342 230; setang 180 0 0
Put that as:
[lua]
NPC:SetPos(Vector(12341, 2342, 230));
NPC:SetAngles(Angle(180, 0, 0));
[/lua]
As for the GUI, I recommend you study the gmod wiki:
[url]http://wiki.garrysmod.com/?title=Derma[/url]
As well as use:
[b][url=wiki.garrysmod.com/?title=Concommand.Add]Concommand.Add [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[b][url=wiki.garrysmod.com/?title=G.RunConsoleCommand]G.RunConsoleCommand [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
To make the gui actually do something.
Good luck!
Sorry, you need to Log In to post a reply to this thread.