Skip to content

twinded_trashbin

A trashbin searching script for RedM. Players can search trashbins scattered across the map to find random loot, or look inside to access a shared stash inventory.

Dependencies

ResourceRequiredNotes
twinded_libsYesFree shared library

Compatibility

Cross-framework — works with VORP, RSG, QBCore RedM, QRCore, RedEM:RP, RPX, TPZ-CORE, and FRP. Framework is auto-detected by twinded_libs.

Installation

bash
ensure twinded_libs
ensure twinded_trashbin

Config Files

FileDescription
settings.luaMain settings, trashbin locations, loot tables, cooldowns
lang.luaTranslation strings
webhook.luaCustom webhook handler (when Config.Webhook.type = 'custom')

See the Configuration guide for how to override these files.

Configuration Reference

settings.lua

OptionTypeDefaultDescription
Config.SearchTimenumber10000Search duration (milliseconds)
Config.TrashbinBlipbooleanfalseShow map blips for trashbin locations
Config.TimeToRefilltable{ 300, 600 }Random cooldown range (seconds) between searches { min, max }
Config.TrashSlotsnumber500Inventory slots per shared stash
Config.ClearCommandstring"cleartrash"Admin command to clear all trashbin inventories
Config.AdminGroupstable{ ["superadmin"]=true, ["admin"]=true }Groups allowed to use admin command (hash table format)
Config.Webhook.typestring"discord"'discord' or 'custom'
Config.Webhook.urlstring""Discord webhook URL

Loot Table Format

Each item in the loot table uses this format:

lua
["item_name"] = {
    Label = "Display Name",
    Amount = { 1, 3 },    -- { min, max } random amount range
    Chance = 40,           -- Drop chance (1-100 percentage)
}

Trashbin Location Fields

Each entry in Config.TrashBins:

FieldTypeDescription
Propstring or falseProp model to spawn (false = use existing world object)
PostableCoordinates: { x, y, z }
ItemstableLoot table for this location (use a shared DefaultLoot variable or define custom)

Features

  • Searchable trashbins — Hold prompt to search with animation and progress bar
  • Shared stash — Each trashbin has its own shared inventory
  • Random loot — Configurable items with individual drop chances and amount ranges
  • Cooldown system — Random refill time between searches to prevent farming
  • 94 pre-configured locations — Valentine, Saint Denis, Rhodes, Blackwater, Armadillo, and more
  • Prop spawning — Automatically spawns trashbin props at configured locations
  • Optional blips — Toggle map blips for trashbin locations
  • Custom loot per location — Each trashbin can have its own loot table
  • Admin command/cleartrash to clear all trashbin inventories and reset cooldowns
  • Webhook logging — Discord logging or custom handler

Troubleshooting

ProblemSolution
Script doesn't startMake sure twinded_libs is started before twinded_trashbin
No blips on mapSet Config.TrashbinBlip = true in your custom settings
Can't interactCheck you are close enough to the trashbin
"Someone already searched"The trashbin is on cooldown — wait for Config.TimeToRefill
Props not spawningVerify Prop field is set (not false) in the trashbin config

Premium RedM Scripts — Multi-Framework