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.

Lua Eror Custom Jobs HELP ME PLS!!!!!!!

Discussion in 'DarkRP Modding Questions & Help' started by Inception's | Emre, Apr 8, 2017.

  1. Inception's | Emre

    Inception's | Emre New Member

    Hello guys I having some problem with my starwarrp server could you guys help me there is the eror and I cant see any of my jobs.

    attempt to concatenate a nil value
    1. DrawPlayerInfo -
    2. DrawEntityDisplay -
    3. fn - addons/darkrpmodification/lua/darkrp_modules/tcb_hud_2/cl_main.lua:475
    4. unknown - addons/ulib/lua/ulib/shared/hook.lua:110

    and my jobs.lua file please help me guys please I need help

    Attached Files:

  2. Jkarateking

    Jkarateking Member

    You posted this in the wrong place but still. On Line 632 you missed out a [ for the description at the start:

    TEAM_ACEMIMJR = DarkRP.createJob("StromTrooperMJR", {
    color = Color(0, 86, 255, 255),
    model = {"models/player/sgg/starwars/stormtrooper.mdl"},
    description = [MJR]],
    weapons = {"weapon_752bf3_e11","tfa_swch_dc17"},
    command = "strom9",
    max = 3,
    salary = 100,
    admin = 0,
    PlayerSpawn = function(ply) ply:SetHealth(500) end,
    vote = false,
    hasLicense = true,
    candemote = true,
    -- CustomCheck
    medic = false,
    chief = false,
    mayor = false,
    hobo = false,
    cook = false,
    category = "STROM TROOPERS",

    There is a tool for finding errors for jobs if you looked around a little bit: https://fptje.github.io/glualint-web/
    Last edited: Apr 13, 2017
  3. wrong section?

Share This Page