Giter Site home page Giter Site logo

Comments (7)

Servius avatar Servius commented on August 16, 2024

I wont say Ive searched every corner of the galaxy for a solution to this but I have done a fair amount of checking. Just looking for a "Is_Sold = False" function to tag onto these things.

from darkrpmodification.

FPtje avatar FPtje commented on August 16, 2024

Ask the authors of your dealer and inventory addons. I don't own those, so I can't influence their behaviour.

from darkrpmodification.

Servius avatar Servius commented on August 16, 2024

Not looking for you to influence the behavior of other addons. My "dealer" addon is just a gun dealer and black market dealer job on DarkRP and its the removal of old shipments that caused the problem, not the handling of the situation via the inventory addon. The ability to disable shipments without commenting them out seems to be fairly simple functionality that could be expanded upon over time. Like a built "in sell and display only if <usergroup/job/team/permission/playermodel/cooljoke/command/etc.> = true"

or even the ability to do allowed = { nil }, to make it so the shipment is present but not being sold. Could be useful in spawning in pre-made shipments to make sure everything is working in terms of ammo count, model, etc.

You already have a couple things that are pointed to the more specific situations like onBought or getPrice. In my opinion something like the above would have at least some relative use compared to some other suggestions made in the past.

from darkrpmodification.

FPtje avatar FPtje commented on August 16, 2024

You can make them invisible and unbuyable with the existing options. There's no need for me to make another option for things you can already do. Especially since you only want it because your inventory addon has some weird behaviour.

from darkrpmodification.

Servius avatar Servius commented on August 16, 2024

Could you pretty please show me what Id have to do to make it work with the existing options? An example if possible.

from darkrpmodification.

FPtje avatar FPtje commented on August 16, 2024

http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields

Setting customCheck to function() return false end end should probably do the trick, depending on the F4 menu and settings you use.

from darkrpmodification.

Servius avatar Servius commented on August 16, 2024

Alrighty. Thank you.

from darkrpmodification.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.