• custom entity wont show up
    5 replies, posted
so i made this custom entity but it wont show up in menu i checked console for errors but i didnt find any (or i just didnt found it) and i also checked ENT.Spawnable was true how i could solve this?
Post the code
[QUOTE=TheVac;52116788]Post the code[/QUOTE] i just started it so there isnt much init [url]https://www.dropbox.com/s/ofsejjx42bnen3q/init.lua?dl=0[/url] shared [url]https://www.dropbox.com/s/7dw6hg9k2pyhdz1/shared.lua?dl=0[/url] cl_init [url]https://www.dropbox.com/s/tbirv6tm46hmzn1/cl_init.lua?dl=0[/url]
[QUOTE=RasmusG5;52119886]i just started it so there isnt much init [url]https://www.dropbox.com/s/ofsejjx42bnen3q/init.lua?dl=0[/url] shared [url]https://www.dropbox.com/s/7dw6hg9k2pyhdz1/shared.lua?dl=0[/url] cl_init [url]https://www.dropbox.com/s/tbirv6tm46hmzn1/cl_init.lua?dl=0[/url][/QUOTE] Post the code in [code] tags.
[QUOTE=SkitZz;52119958]Post the code in [code] tags.[/QUOTE] which file?
[CODE] -- shared.lua ENT.Type = "anim" ENT.Base = "base gmodentity" ENT.PrintName = "Admin_pc" ENT.Spawnable = "true" ENT.AdminSpawnable = "true" ENT.Category = "hotel" [/CODE] It's "base_gmodentity" -- You forgot an underscore character Also, don't assign strings to ENT.Spawnable and ENT.AdminSpawnable, use the [URL="http://wiki.garrysmod.com/page/boolean"]boolean type[/URL] instead: [CODE] ENT.Spawnable = true ENT.AdminSpawnable = true [/CODE]
Sorry, you need to Log In to post a reply to this thread.