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.

pocket blacklist not working for new blacklisting

Discussion in 'DarkRP Modding Questions & Help' started by streetkilln, Nov 20, 2014.

  1. streetkilln

    streetkilln Member

    so i have this script
    https://scriptfodder.net/scripts/view/492
    and i want to black list the money props so players cant take them

    i added the prop models to my pocketblacklist in config.lua

    but its not working..


    GM.Config.PocketBlacklist = {
    ["fadmin_jail"] = true,
    ["meteor"] = true,
    ["door"] = true,
    ["func_"] = true,
    ["player"] = true,
    ["beam"] = true,
    ["worldspawn"] = true,
    ["env_"] = true,
    ["path_"] = true,
    ["prop_physics"] = true,
    ["money_printer"] = true,
    ["economy_shelves"] = true,
    ["economy_money"] = true,
    ["economy_alarm"] = true,
    }
     
  2. Cake

    Cake Active Member

    These are entity's, not props.
     
  3. streetkilln

    streetkilln Member

    shouldnt they still be blocked from pocket if its in the list
     
  4. Cake

    Cake Active Member

  5. streetkilln

    streetkilln Member

    i dont really understand, explain??
     
  6. Cake

    Cake Active Member

    Code (Text):
    hook.Add("canPocket",function(ply,ent) if ent:GetModel()=="MODELPATH" then
    return false, "Unable to pick up prop!"
    end
    end)
    Should work, may have an error though since I am still kind of new to returning multiple values like that. This makes it so when every someone try's to pocket something it runs this code which says Wether they can or cant pocket it (by default they should be able to). If you want I can also make it a bit easier to add multiple props to it.
     
  7. streetkilln

    streetkilln Member

    where do i put this cod may i ask?
     
  8. streetkilln

    streetkilln Member

    Oopps im dumb i was editing the wrong file. The one in addons, darkrpmoddifications settings.Lu was supposed to be eddited
     
  9. Cake

    Cake Active Member

    No.... Go to lua->autorun->server and make a new lua file called pocketblacklister.lua
     

Share This Page