[QB/ESX] RAT-BINS - A Searchable Bin Script for FiveM

RAT-BINS by RATLABS

Discover the essential bin search script for the QBCore or ESX framework on FiveM. With RAT-BINS, server owners can configure searchable bins with customizable item drops, offering players a unique and immersive experience.

Read the documentation HERE!


Video Showcase


Config
Config = {} 

Config.Lang = "en"

Config.Framework = "detect" -- "detect" or "ESX" or "qb-core"
Config.Inventory = "detect" -- "detect" or "ESX" or "qb-core" or "OX"

Config.SearchTime = 5000 -- Time in ms (1000 = 1 Second)
Config.Cooldown = 5 -- minutes

Config.SearchOption = "progress" -- "progress" or "skillcheck"
Config.SkillCheckAmount = 3 -- Amount of skill checks
Config.SkillCheckDifficulty = "easy" -- "easy", "medium", "hard"

Config.HurtChance = 20 -- Chance of getting hurt when searching trash with no gloves (change to 0 to disable)
Config.Damage = 10 -- Damage dealt when getting hurt when searching trash with no gloves

Config.MinDrops = 1 -- Min amount of different items to drop
Config.MaxDrops = 3 -- Max amount of different items to drop

Config.Models = {  -- Models of the trash bins (https://gtahash.ru/)
    "prop_cs_bin_01",
    "prop_cs_bin_02",
    "prop_cs_bin_03",
    "prop_cs_dumpster_01a",
    "prop_dumpster_4b",
    "prop_dumpster_4a",
}

Config.ModelDrops = { -- Model specific item drop table (These props still have the generic drops)
    [`prop_dumpster_4a`] = {
        {item = "weapon_pistol", min = 1, max = 1, dropRate = 10},
    }
}

Config.Drops = { -- Generic item drop table
    {item = "plastic", min = 1, max = 3, dropRate = 100},
    {item = "rubber", min = 1, max = 3, dropRate = 100},
    {item = "copper", min = 1, max = 3, dropRate = 100},
    {item = "aluminum", min = 1, max = 3, dropRate = 100},
    {item = "iron", min = 1, max = 3, dropRate = 100},
    {item = "steel", min = 1, max = 3, dropRate = 100},
    {item = "glass", min = 1, max = 3, dropRate = 100},
}

Config.NoGlovesM = { -- Male hands that do not have gloves
    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 112, 113, 114, 184, 196, 198 -- base game numbers
}

Config.NoGlovesF = { -- Female hands that do not have gloves
    0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 129, 130, 131, 153, 161, 229, 241 -- base game numbers 
}

Config.Animation = { -- Animation for searching trash (https://forge.plebmasters.de/animations)
    dict = "mini@repair",
    name = "fixing_a_ped",
}
Features
  • Configure which models can be searchable
  • Adjust the loot tables items, drop chance, and amounts
  • Select either a progress bar or skill check when searching
  • Configure the chance to cut yourself if you’re not wearing gloves
  • Add specific item drops to different models
  • Multi-Language Support:
    • English
    • Arabic
    • German
    • Spanish
    • French
    • Hindi
    • Japanese
    • Chinese
    • Russian
    • Korean
  • And More!

Our Tebex Store


Other RATLABS Scripts

RAT-NOTIFY
RAT-LOGIN


RATLABS Scripts are proudly protected by the Asset Escrow System. Learn more about it: https://forum.cfx.re/t/introducing-asset-escrow-for-your-resources/4777151

Code is accessible No (Config = Yes)
Subscription-based No
Lines (approximately) 200
Requirements ox_lib, ox_target
Support Yes
1 Like