Simple Dumpster Diving Resource
What is this?
- This script allows players to search any dumpster in the game to acquire items that they find.
This is easily modifiable and can have the potential to be a good resource
(Code taken from OnyxDumpster)
GitHub
Features
- Search any dumpster in the city
- Specific dumpsters have a cooldown timer after you search it (5 minutes default)
- Get random items from dumpsters based on chance.
- Utilizes BT-Target to search dumpster
Required Scripts
Preview
Coming Soon…
6 Likes
the script is super good thank you very much, one question, what inventory is it? it is also beautiful
good release, but consumes 0.40 ms
change this this:
Citizen.CreateThread(function()
while true do
Citizen.Wait(100)
if canSearch then
local ped = GetPlayerPed(-1)
local pos = GetEntityCoords(ped)
local dumpsterFound = false
to
Citizen.CreateThread(function()
while true do
Citizen.Wait(10000)
if canSearch then
local ped = GetPlayerPed(-1)
local pos = GetEntityCoords(ped)
local dumpsterFound = false
To change from 0.40 to 0.1 ms
1 Like
Mat3
5
If you’re using bt-target why do you even need a loop?
I rewritten the code in more optimized and better way, i maked a pull request.
Link of the fork: GitHub - XenoS-ITA/stv-dumpster
2 Likes
Good job, however if you’re using bt-target you can remove the thread all together to further optimize the resource. I done this a couple months back runs super smooth
If you’re using Linden_Inventory, why are you running another dumpster diving resource when that inventory system has one built in?
and is it normal that when I turn on a resource and go to the server, I have a black screen, then I restart the resource and I’m in the sea with a supply and dead?
Need help here? I am struggling to figure this out