• DarkRP and ents.Create
    3 replies, posted
Hi everybody, When I try to use ents.Create() it always displays an error I just tried lua_run mynewent=ents.Create('item_ammo_crate') Attempted to create unknown entity type item_ammo_crate !
That means the entity you are trying to create doesn't exist on the server, are you sure its called that?
make sure it exists in an addon, or in gamemodes/<name>/entities/entities/item_ammo_crate.lua or as a folder with several files. General Learning Lua Help Thread: [url]http://facepunch.com/showthread.php?t=1337945[/url] Problems that don't need their own thread ( All simple questions / quickies should go here ): [url]http://facepunch.com/showthread.php?t=1348923[/url] DarkRP Help Thread ( [b]ALL[/b] DarkRP Questions go here ): [url]http://facepunch.com/showthread.php?t=1249475[/url] Looking to [b]HIRE[/b] a coder? Read this: [url]http://facepunch.com/showthread.php?t=1257110[/url] Coderhire Thread: [url]http://facepunch.com/showthread.php?t=1281665[/url] Facepunch Style Fixer for GreaseMonkey: [url]https://userstyles.org/styles/65192/facepunch-fixer[/url]
Make sure you are running that on serverside
Sorry, you need to Log In to post a reply to this thread.