• DarkRP Entity Help
    2 replies, posted
Okay so my problem is making an entity. I want to make the Pizza in this mod [url]http://steamcommunity.com/sharedfiles/filedetails/?id=163221745&searchtext=food+mod[/url] an entity spawnable only by my custom job. Heres the code for the ent [CODE]DarkRP.createEntity( "Pepperoni Pizza", { ent = "food_pepperonipizza", model = "models5/peppizza01/peppizza01.mdl", price = 100, max = 100, cmd = "buypeppizza", allowed = {TEAM_Pizza_Man}, category = "Other" })[/CODE] then heres the code for my custom job [CODE]TEAM_PIZZA_MAN = DarkRP.createJob("Pizza Man", { color = Color(142, 153, 25, 255), model = {"models/Humans/Group01/male_08.mdl"}, description = [[You are the Pizza man. You base at the Pizza Parlor and sell your pie to the public.]], weapons = {}, command = "pizzaman", max = 1, salary = 300, admin = 0, vote = false, hasLicense = false, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Working Class", })[/CODE] But when I get into game nothing shows up, someone, anyone, please help.
Firstly we should make up our mind about the casing. The variable TEAM_Pizza_Man is not defined in your code, but TEAM_PIZZA_MAN is. Change: [CODE] allowed = {TEAM_Pizza_Man},[/CODE] To: [CODE] allowed = {TEAM_PIZZA_MAN},[/CODE]
[QUOTE=bayrock;48650682]Firstly we should make up our mind about the casing. Change: [CODE] allowed = {TEAM_Pizza_Man},[/CODE] To: [CODE] allowed = {TEAM_PIZZA_MAN},[/CODE][/QUOTE] Okay. Lets go with the second one. Anything else?
Sorry, you need to Log In to post a reply to this thread.