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.

How to make it so people cant spawn in stuff?

Discussion in 'DarkRP Modding Questions & Help' started by thewazzup908, Oct 1, 2017.

  1. thewazzup908

    thewazzup908 New Member

    I want to have an option on my server where people just cant spawn in things and make a base. I want it to have it so when you push q nothing happens and you have to buy furniture at a shop.. ETC. How can I make it like this?
     
  2. Aireesan

    Aireesan New Member

    @thewazzup908 You can set your prop blacklist to be a whitelist to prevent prop spawning and have nothing blacklisted. Otherwise, modify sandbox gamemode.
     
  3. {NG} Mr. Nightmare

    {NG} Mr. Nightmare New Member

    Make sure you get Falco's Prop Protection as well, if you don't already have it, click "Falco's Prop Protection" for a direct download
     
  4. thewazzup908

    thewazzup908 New Member

    Yeah but how can I make it so I can get rid of the q menu so people cant spawn stuff? Like perp
     
  5. {NG} Mr. Nightmare

    {NG} Mr. Nightmare New Member

    I suggest you use the wiki on disabling the q menu, located here: https://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index8042.html
    --- Double Post Merged, Oct 2, 2017 ---
    Code (Text):
    local function DisallowSpawnMenu( )
        return false
    end
    hook.Add( "SpawnMenuOpen", "DisallowSpawnMenu", DisallowSpawnMenu)
    --- Double Post Merged, Oct 2, 2017 ---
    If that doesnt work try this
    Code (Text):

    local function DisallowSpawnMenu( )
        if not LocalPlayer():IsSuperAdmin() then
         return false
        end
    end
    hook.Add( "SpawnMenuOpen", "DisallowSpawnMenu", DisallowSpawnMenu)
    Sorry, I would test it on my server but I have no time
     
    Last edited: Oct 2, 2017
  6. thewazzup908

    thewazzup908 New Member

    Thanks for the reply, and where do I place this code? How do I make it for superadmin not admin?
     
  7. {NG} Mr. Nightmare

    {NG} Mr. Nightmare New Member

    Code (Text):
    local function DisallowSpawnMenu( )
        if not LocalPlayer():IsSuperAdmin() then
         return false
        end
    end
    hook.Add( "SpawnMenuOpen", "DisallowSpawnMenu", DisallowSpawnMenu)
    that code should be superadimin, place it in cl_init.lua I don't recommend this, but it says it goes in darkrp/game mode/cl_init.lua, if I get time I'll figure out where you can place it in the DRP mod. add-on, but rn I have no time (ONCE AGAIN, I DO NOT RECOMMEND EDITING THE DARKRP CORE FILES)
     
  8. thewazzup908

    thewazzup908 New Member

    Isn't there a way I can place it in dakrp modification in addons?
    --- Double Post Merged, Oct 4, 2017 ---
    Did you find another place to put it?
     
    Last edited: Oct 4, 2017

Share This Page