1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Sign up for news, events and more!

    You're currently visiting the official DarkRP Forums as a guest. Sign up now to participate in our community and we'll let you know when we have news.

My custom entities aren't showing up at all. Please help.

Discussion in 'Player General Chat' started by Larry Alex TGN, Oct 21, 2018.

  1. Larry Alex TGN

    Larry Alex TGN New Member

    Every time I start up my server I am met with this message:
    [ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/entities.lua:46: '}' expected (to close '{' at line 39) near 'allowed'
    And when i load into the server none of my entities appear. I have no idea what the problem is, I have checked the line of the mistake and dont see anything wrong, im extremely new to this, please help.
    My Entities.lua:
    --[[---------------------------------------------------------------------------
    DarkRP custom entities
    ---------------------------------------------------------------------------

    This file contains your custom entities.
    This file should also contain entities from DarkRP that you edited.

    Note: If you want to edit a default DarkRP entity, first disable it in darkrp_config/disabled_defaults.lua
    Once you've done that, copy and paste the entity to this file and edit it.

    The default entities can be found here:
    https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua#L111

    For examples and explanation please visit this wiki page:
    http://wiki.darkrp.com/index.php/DarkRP:CustomEntityFields

    Add entities under the following line:
    ---------------------------------------------------------------------------]]

    DarkRP.createEntity("Cheap Printer", {
    ent = "Gold",
    model = "models/hunter/blocks/cube05x05x025.mdl",
    price = 5000,
    max = 2,
    cmd = "buycheapprinter",
    category = "Printers"
    allowed = {TEAM_GANG, TEAM_CRIMINAL, TEAM_MOB},

    })

    DarkRP.createEntity("Average Printer", {
    ent = "Emerald",
    model = "models/hunter/blocks/cube05x05x025.mdl",
    price = 10000,
    max = 1,
    cmd = "buybargainprinter",
    category = "Printers"
    allowed = {TEAM_GANG, TEAM_CRIMINAL, TEAM_MOB},
    })

    DarkRP.createEntity("Nice Printer", {
    ent = "Sapphire ",
    model = "models/hunter/blocks/cube05x05x025.mdl",
    price = 15000,
    max = 1,
    cmd = "buysapphireprinter",
    category = "Printers"
    allowed = {TEAM_GANG, TEAM_CRIMINAL, TEAM_MOB},
    })

    DarkRP.createEntity("Luxury Printer", {
    ent = "Ruby",
    model = "models/hunter/blocks/cube05x05x025.mdl",
    price = 25000,
    max = 1,
    cmd = "buyluxuryprinter",
    category = "Printers"
    allowed = {TEAM_GANG, TEAM_CRIMINAL, TEAM_MOB},
    })

    --[[
    Generated using: DarkRP | Entity Generator
    https://csite.io/tools/gmod-darkrp-entity
    --]]
    DarkRP.createEntity("Double Cheezeburger", {
    ent = "mcdburger2",
    model = "models/food/burger.mdl",
    price = 1000,
    max = 5,
    cmd = "buycheezeburger2"
    allowed = {TEAM_FASTFOOD},

    })

    --[[
    Generated using: DarkRP | Entity Generator
    https://csite.io/tools/gmod-darkrp-entity
    --]]
    DarkRP.createEntity("Cheezeburger", {
    ent = "mcdburger",
    model = "models/food/burger.mdl",
    price = 1000,
    max = 5,
    cmd = "buycheezeburger"
    allowed = {TEAM_FASTFOOD},
    customCheck = function(ply) return
    table.HasValue({TEAM_FASTFOOD}, ply:Team())
    end,
    CustomCheckFailMsg = "",
    })

    --[[
    Generated using: DarkRP | Entity Generator
    https://csite.io/tools/gmod-darkrp-entity
    --]]
    DarkRP.createEntity("Chicken", {
    ent = "mcdchick",
    model = "models/food/burger.mdl",
    price = 1000,
    max = 5,
    cmd = "buychicken"
    allowed = {TEAM_FASTFOOD},
    customCheck = function(ply) return
    table.HasValue({TEAM_FASTFOOD}, ply:Team())
    end,
    CustomCheckFailMsg = "",
    })

    --[[
    Generated using: DarkRP | Entity Generator
    https://csite.io/tools/gmod-darkrp-entity
    --]]
    DarkRP.createEntity("Large Meal", {
    ent = "mcdmeal",
    model = "models/food/burger.mdl",
    price = 1000,
    max = 5,
    cmd = "buymeal"
    allowed = {TEAM_FASTFOOD},
    customCheck = function(ply) return
    table.HasValue({TEAM_FASTFOOD}, ply:Team())
    end,
    CustomCheckFailMsg = "",
    })


    DarkRP.createEntity("Small Meal", {
    ent = "mcdmeal2",
    model = "models/food/burger.mdl",
    price = 1000,
    max = 5,
    cmd = "buymeal2"
    allowed = {TEAM_FASTFOOD},
    customCheck = function(ply) return
    table.HasValue({TEAM_FASTFOOD}, ply:Team())
    end,
    CustomCheckFailMsg = "",}
    })


    DarkRP.createEntity("Soda", {
    ent = "mcdsoda",
    model = "models/food/burger.mdl",
    price = 1000,
    max = 5,
    cmd = "buysoda"
    allowed = {TEAM_FASTFOOD},
    customCheck = function(ply) return
    table.HasValue({TEAM_FASTFOOD}, ply:Team())
    end,
    CustomCheckFailMsg = "",
    })
     
    Last edited: Oct 21, 2018

Share This Page