Sinor Recycler (QBCore/ESX)
This script allows players to recycle items at designated recycling machines, converting them into base materials.
Features
- Spawns recycling machines at configurable locations.
- Players can deposit items into a machine’s stash.
- Items are processed into recycled materials.
- Highly configurable: customize machine locations, recyclable items, and more.
Dependencies
- QBCore/ESX
- qb-target or ox_target
- ox_inventory or qb-inventory (Requires V1, V2 is incompatible)
Configuration
Config = {}
Config.Framework = 'ESX' -- "ESX" or "QBCore"
Config.CoreObject = 'es_extended' -- 'qb-core' or 'es_extended'
Config.target = "ox" -- options "qb" or "ox"
Config.inventory = "ox" -- options "qb" or "ox"
Config.recyclingMachineModel = "gr_prop_gr_lathe_01c" -- recycler prop
Config.progressBartime = 5000 -- progress timer
Config.RecyclerSetting = { slots = 4, maxWeight = 100000 } -- stash and weight
-- Recycler locations
Config.RecyclerLocation = {
vector4(-572.78, 5321.46, 69.22, 62.53),
vector4(2046.34, 3410.17, 43.34, 119.1),
vector4(461.18, -808.04, 27.24, 269.62),
vector4(-377.48, -2266.34, 6.61, 0.08)
-- add more if needed
}
-- All the items to recycle
Config.recyclables = {
-- under here is for the ones using qbcore
-- Melee
weapon_bat = { wood = 15, rubber = 5 },
weapon_bottle = { glass = 10 },
weapon_crowbar = { iron = 15, steel = 5 },
weapon_flashlight = { aluminum = 5, rubber = 5, plastic = 5 },
weapon_hammer = { iron = 10, steel = 5, wood = 5 },
weapon_hatchet = { iron = 12, steel = 8, wood = 5 },
weapon_knife = { iron = 10, steel = 5 },
weapon_machete = { iron = 12, steel = 8 },
-- Weapons
weapon_ceramicpistol = { aluminum = 35, rubber = 20, plastic = 15, steel = 35 },
weapon_grenade = { aluminum = 10, plastic = 6, steel = 10 },
weapon_pumpshotgun = { aluminum = 50, plastic = 80, steel = 50, iron = 50, copper = 45 },
weapon_pistol = { iron = 15, steel = 10, electronicscrap = 5, rubber = 5 },
weapon_stungun = { plastic = 10, electronicscrap = 10, copper = 5 },
weapon_snspistol = { iron = 12, steel = 8, rubber = 5 },
weapon_microsmg = { iron = 20, steel = 15, electronicscrap = 10, rubber = 5 },
weapon_smg = { iron = 25, steel = 20, electronicscrap = 10, rubber = 5 },
weapon_combatpdw = { iron = 30, steel = 20, electronicscrap = 10, rubber = 5 },
weapon_musket = { wood = 20, iron = 15, steel = 10 },
weapon_assaultrifle = { iron = 40, steel = 25, electronicscrap = 15, rubber = 10 },
weapon_sniperrifle = { iron = 50, steel = 30, electronicscrap = 20 },
-- Ammo
pistol_ammo = { iron = 5, gunpowder = 5 },
rifle_ammo = { iron = 8, gunpowder = 8 },
smg_ammo = { iron = 6, gunpowder = 6 },
shotgun_ammo = { iron = 10, gunpowder = 10 },
-- Food
water_bottle = { plastic = 5 },
coffee = { plastic = 3 },
kurkakola = { plastic = 4, aluminum = 2 },
beer = { glass = 5 },
whiskey = { glass = 8 },
vodka = { glass = 8 },
wine = { glass = 10 },
-- Tools
lockpick = { steel = 5, aluminum = 3 },
advancedlockpick = { steel = 8, aluminum = 5 },
electronickit = { electronicscrap = 15, plastic = 5 },
repairkit = { steel = 10, rubber = 5 },
advancedrepairkit = { steel = 15, rubber = 10 },
jerry_can = { plastic = 10 },
tirerepairkit = { rubber = 10, steel = 5 },
-- Electronics
phone = { plastic = 8, electronicscrap = 10, glass = 5 },
iphone = { plastic = 10, electronicscrap = 15, glass = 10 },
samsungphone = { plastic = 10, electronicscrap = 15, glass = 10 },
laptop = { plastic = 15, electronicscrap = 20, glass = 5, copper = 5 },
tablet = { plastic = 12, electronicscrap = 15, glass = 8, copper = 5 },
fitbit = { plastic = 5, electronicscrap = 8 },
radioscanner = { plastic = 8, electronicscrap = 10 },
pinger = { plastic = 6, electronicscrap = 10 },
-- Gear
armor = { steel = 20, rubber = 10, electronicscrap = 5 },
heavyarmor = { steel = 30, rubber = 15, electronicscrap = 10 },
-- Backpacks
backpack1 = { thread = 10, cloth = 2 },
backpack2 = { thread = 20, cloth = 5 },
backpack3 = { thread = 30, cloth = 10 },
backpack4 = { thread = 60, cloth = 20 },
backpack5 = { thread = 120, cloth = 40 },
-- clothing
shirt = { thread = 1, cloth = 2 },
pant = { thread = 2, cloth = 1 },
-- Other
parachute = { nylon = 10, steel = 5 },
binoculars = { glass = 5, electronicscrap = 5 },
jerrycan = { plastic = 10 },
bandage = { thread = 1, cloth = 1 },
-- example of using ox_inventory in esx you need to add the items from ox_inventory\data\items.lua or weapons.lua....
-- WEAPON_BAT = { wood = 15, rubber = 5 },
-- WEAPON_BOTTLE = { glass = 10 },
-- WEAPON_CROWBAR = { iron = 15, steel = 5 },
-- WEAPON_FLASHLIGHT = { aluminum = 5, rubber = 5, plastic = 5 },
-- WEAPON_HAMMER = { iron = 10, steel = 5, wood = 5 },
-- WEAPON_HATCHET = { iron = 12, steel = 8, wood = 5 },
-- WEAPON_KNIFE = { iron = 10, steel = 5 },
-- WEAPON_MACHETE = { iron = 12, steel = 8 },
}
Preview
Tebex
Other Scripts
QBCore/ESX|BaseBuilding
Standalone|AdvancedZombieSystem
Standalone|SurvivalHUD
Standalone|VehicleSpawne
QBCore/ESX|UsableItems
QBCore/ESX|VehicleCrafting
QBCore/ESX|Gather
Standalone|SafeZone
QBCore/ESX|LootAreas
QBCore/ESX|LootPeds
QBCore/ESX|RadiationZones
Standalone|ZombieSystem
QBCore|Shop
QBCore|WeatherSync
QBCore/ESX|InGameMusic
QBCore/ESX|CamperHousing
standalone|SurvivalHUD
QBCore/ESX|LootBags
Vehicles|ApocalypticVehicles-V1
QBCore/ESX|HorseRiding
QBCore/ESX|Menu
Support:
you can join my discord for any support ! Sinor System
| Code is accessible | only Config |
| Subscription-based | No |
| Lines (approximately) | 150+ |
| Requirements | QBCore/ESX |
| Support | Yes |
