[PAID] [QB/ESX] m-Grinder - Material Crusher - Rust Inspired

:pushpin: Features:

  • Optimized ( 0.00ms )
  • Custom grinder prop
  • Webhhoks with rewards
  • Protected events
  • Compatible with qb/ox inventory
  • Possibility to block access only to specific jobs
  • Custom sounds
  • All items, rewards, times can be configured
  • Enable specific locations or use by item
  • Particles on machine when using
  • Time depends how many materials you use

:pushpin: Links:

| Code is accessible | configs |
| Subscription-based | No |
| Lines (approximately) | ~600 |
| Requirements | Server Build 2699 |
| Support | Yes |

4 Likes

Is this open enough to change so that you’re guaranteed a certain item after input? For example if I want to give 10 glass everytime a phone is put in instead of random rewards, is that possible?

Basicly you have a zone to put specific items, and with that you can get other ones.

Config.GrinderSettings = {
    TimeProgress = 1000, -- 1 Second for each item, example: If the player puts 20x metalscrap then the progressbar will be 20 seconds long
    Itens = { -- List of items people can insert into the grinder
        -- item: Item that will be used and removed when placed in the grinder
        -- minAmount: Minimum amount of this item
        [1] = { item = "metalscrap", minAmount = 5 },
        [2] = { item = "steel", minAmount = 15 },
        [3] = { item = "glass", minAmount = 8 },
        -- You can add more items below
    },
    PossibleRewards = { -- List of possible items received after the grinder has finished
        -- item: Item that will be given to the player
        -- minAmount: Minimum amount of the item
        -- maxAmount: Maximum amount of the item
        -- chance: Chance of dropping this item
        [1] = { item = "phone", minAmount = 1, maxAmount = 2, chance = 100 },
        [2] = { item = "lockpick", minAmount = 1, maxAmount = 2, chance = 60 },
        [3] = { item = "advancedlockpick", minAmount = 1, maxAmount = 2, chance = 80 },
        [4] = { item = "electronickit", minAmount = 1, maxAmount = 2, chance = 90 },
        [5] = { item = "screwdriverset", minAmount = 1, maxAmount = 2, chance = 25 },
        -- You can add more items below
    }
}

I guess I’m more asking how much of the script is obfuscated to be able to change that feature so it’s a one-to-one exchange?