[PAID][ESX] Recycling Materials

A script by LEVISD

No reviews yet.
[PAID][ESX] Recycling Materials main image

Full Description

Showcase
Recycling Materials (tebex.io)

  • Detailed & Easy Config
  • Falling While Carrying Material
  • Inability to Leave the Warehouse During Work
  • Sync with players
  • Item Images & Editable Notifications
  • Open Source & 0.01 ms at idle
Information

If you enter the warehouse and start the quest, then you collect materials at random locations and exchange them for scraps.

Config
LVS = {}

LVS.UseGetInventoryItem = false                                          -- true; getInventoryItem.count, false; getQuantity
LVS.Enter = vector3(746.865, -1399.4, 26.6172)                           -- Warehouse Enter Location
LVS.Exit = vector3(992.406, -3097.8, -38.995)                            -- Warehouse Exit Location
LVS.laptop = vector3(994.642, -3100.0, -38.995)                          -- Duty On/Off Location
LVS.Material = 'recycle'                                                 -- Material Item Name, You can Add Heidsql
LVS.PedHash = `g_m_m_chemwork_01`                                        -- Ped Hash; 
LVS.PedLocation = {x = 998.198, y = -3105.0, z = -40.0, h = 338.08}      -- Ped Location
LVS.OpenHour = 9                                                         -- Recycling Center Opening Hour
LVS.CloseHour = 20                                                       -- Recycling Center Closing Hour

LVS.Trade = {
	["repairkit"] = {
		RequiredItems = {Item = LVS.Material, label = 'Repairkit - 2 Material', Count = 2}
	},
	["phone"] = {
		RequiredItems = {Item = LVS.Material, label = 'Phone - 5 Material', Count = 5}
	},
	["lockpick"] = {
		RequiredItems = {Item = LVS.Material, label = 'Lockpick - 1 Material', Count = 1}
	}
}

LVS.Lang = {
	['recycle'] = 'Recycle',
	['enter'] = 'Enter the Recycling Center',
	['exit'] = 'Exit the Recycling Center',
	['duty'] = 'Duty On/Off',
	['on_duty'] = 'Duty On',
	['off_duty'] = 'Duty Off',
	['need_off_duty'] = 'You Have to get Off Duty',
	['material'] = 'Pick up Material',
	['pickup'] = 'Picking Material',
	['drop'] = 'Drop Material',
	['nice'] = 'Nice work, Keep it up!',
	['trade'] = 'Trade Your Materials',
	['no_material'] = 'You dont have Enough Material',
	['close'] = 'The Recycle Center is Only Open '..LVS.OpenHour..' - '..LVS.CloseHour..'!',
	['closing'] = 'Recycling Center will Close in 10 Minutes',
	['closed'] = 'Recycling Center Closed'
}

RegisterNetEvent('lvs_recycle:notify')
AddEventHandler('lvs_recycle:notify', function(msg, type)
	ESX.ShowNotification(msg)                                            -- Your Notification Event
end)
Code is accessible Yes
Subscription-based No
Lines (approximately) 330
Requirements mythic_progbar
Support Yes