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.

Server Command To Set Someone As A Job?

Discussion in 'DarkRP Modding Questions & Help' started by NV Sam Pepper, Feb 3, 2017.

  1. NV Sam Pepper

    NV Sam Pepper Member

    Ok, I'd rather only people who know what they're talking about comment in this thread. But I'm using an NPC framework in which you can run server commands on the players who clicked it, now my question is what command would I use to set someone as a job?


    I assumed it would be 'darkrp jobcommand' but that seemed not to work.


    Help would be much appreciated.
     
  2. Pab14567

    Pab14567 Well-Known Member

    Try "setteam"
     
  3. NV Sam Pepper

    NV Sam Pepper Member

    as in setteam jobcmd ?
     
  4. Sir Prassa

    Sir Prassa New Member

    It's this command:

    /setteam Name Job
     
  5. NV Sam Pepper

    NV Sam Pepper Member

    Mate that's a chat command.
     
  6. Pab14567

    Pab14567 Well-Known Member

    Code (Lua):

    for k,v in SortedPairsByMemberValue(team.GetAllTeams(), "Name")   do
                 local uid =  ply:UserID()
    menu:AddOption(v.Name,   function()   RunConsoleCommand("_FAdmin", "setteam",   uid,   k)   end)
    This comes straight from Fadmin of where you force someone in to a job
     
  7. NV Sam Pepper

    NV Sam Pepper Member

    I was talking about the other team hence why i quoted him, i'll re enable fadmin and see if it works.

    thanks
    --- Double Post Merged, Feb 5, 2017 ---
    @Pab14567 I've done a basic darkrp server owner error and fadmin banned myself and apparently 'fadmin unban (mysteamid)' doesn't work anymore.


    Help please lmao
     
    Last edited: Feb 5, 2017
  8. Pab14567

    Pab14567 Well-Known Member

    Sorry brother, but you may have NO OATS



    Re-install darkrp ? lol
     
  9. NV Sam Pepper

    NV Sam Pepper Member

    shit. Lmao.
    lets edit the corefiles thats a good idea.
     

Share This Page