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