Ok, so I'm trying to make a shop on DarkRP. You will talk to an NPC, which will bring up a derma menu. Then from here you can select various things and buy them from the npc. However how would I go about spawning the entitiy? Say I wanted to buy a pistol, I'm ok with buying it but how do you spawn it? Thanks
[b][url=wiki.garrysmod.com/?title=Entity.Spawn]Entity.Spawn [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
or you could just directly give the gun
[b][url=wiki.garrysmod.com/?title=Player.Give]Player.Give [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
Ok thanks. :D
Where will the entity spawn if i use entity.spawn? Thanks
Look at the example on the wiki. You need to create an entity, set its position and angles, eventually make some other changes and then spawn it.
Sorry, you need to Log In to post a reply to this thread.