1. 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.

Will my DarkRP server work without CSS?

Discussion in 'DarkRP Modding Questions & Help' started by Xaniac, Aug 12, 2017.

  1. Xaniac

    Xaniac New Member

    I have fixed all the jobs changed it in the default settings blablabla, so it says that I need to mount CSS for the darkrp server to work?

    Is that why my custom jobs won't popup in the F4 menu, and what will happen if I don't mount CSS???
     
  2. Pab14567

    Pab14567 Well-Known Member

    if you dont mount css you're an idiot.

    if you do mount css you're smart and have a brain and your server will work.
     
  3. Xaniac

    Xaniac New Member

    XD so that's why none of my jobs work?
    --- Double Post Merged, Aug 12, 2017 ---
    Well I've mounted it and it no longer says that I have to mount it, I guess it's mounted? But nothing changed :p
     
  4. Pab14567

    Pab14567 Well-Known Member

    then you probably messed up in your job file, any errors?
     
  5. Xaniac

    Xaniac New Member

    Errors: https://gyazo.com/19d51be03c036492770e9c135d1718d7
    --- Double Post Merged, Aug 12, 2017 ---
    Idk what those have to do with my jobs but here is the code:
    1 = ? idk
    2= https://gyazo.com/52db54b56e25bc7ddcb161a0534ef05c - absolutely nothing
    3= local function loadCustomDarkRPItems()
    for _, File in pairs(customFiles) do
    if not file.Exists(File, "LUA") then continue end
    if File == "darkrp_customthings/food.lua" and DarkRP.disabledDefaults["modules"]["hungermod"] then continue end

    if SERVER then AddCSLuaFile(File) end
    doInclude(File) <-- that one
    end
    end

    4= loadCustomDarkRPItems()
    5= hook.Call("DarkRPFinishedLoading", GM)
    --- Double Post Merged, Aug 12, 2017 ---
    But I don't see the problem that causes my jobs???
     
    Last edited: Aug 12, 2017
  6. Pab14567

    Pab14567 Well-Known Member

    I need the whole error, that's only part of the error.
     
  7. Xaniac

    Xaniac New Member

    I fixed all of it! Now there's Another problem: Problem is: When I try applying to the job nothing happens, zero errors. Only 2 of my 10 jobs that I made work: here's one of the jobs that work:
    TEAM_POLICE = DarkRP.createJob("Police Officer", {
    color = Color(0, 0, 0, 255),
    model = {
    "models/taggart/police01/male_06.mdl",
    "models/taggart/police01/male_03.mdl",
    "models/taggart/police01/male_09.mdl",
    "models/taggart/police01/male_08.mdl"
    },
    description = [[The Police Officer makes sure every citizen obeys the law.]],
    weapons = {"m9k_usp", "arrest_stick", "unarrest_stick", "weaponchecker", "stunstick"},
    command = "police",
    max = 4,
    salary = 200,
    admin = 0,
    vote = true,
    hasLicense = false,
    candemote = true,
    category = "Civil Protection",
    PlayerSpawn = function(ply)
    ply:SetMaxHealth(100)
    ply:SetHealth(100)
    ply:SetArmor(25)
    end
    })

    Here's a faulty one:


    TEAM_SWATM = DarkRP.createJob("S.W.A.T Medic", {
    color = Color(0, 27, 255, 255),
    model = {"models/payday2/units/medic_player.mdl"},
    description = [[The S.W.A.T Medic provide help to all the people injured in whatever criminal activity was going on. Otherwise they work as a normal S.W.A.T Member.]],
    weapons = {"med_kit", "arrest_stick", "stunstick", "unarrest_stick", "weaponchecker", "door_ram", "m9k_hk45"},
    command = "swatm",
    max = 1,
    salary = 450,
    admin = 0,
    vote = true,
    hasLicense = false,
    candemote = true,
    category = "Civil Protection",
    ammo = {
    ["pistol"] = 50
    },
    PlayerSpawn = function(ply)
    ply:SetMaxHealth(100)
    ply:SetHealth(100)
    ply:SetArmor(50)
    end,
    customCheck = function(ply) return CLIENT or
    table.HasValue({}, ply:Team())
    end,
    CustomCheckFailMsg = "",
    })

    Edit: And yes, I tried removing customcheckfailmessage and it didn't do any diffirence.
     
  8. Sir Klutch

    Sir Klutch Active Member

    Uh???
     

Share This Page