Infinite scrapping when using ps-ui
Opened this issue · 1 comments
Myleycyrusvirus commented
elseif Config.Minigame == "ps-ui" then
exports['ps-ui']:Circle(function(success)
if success then
TriggerEvent("QBCore:Notify", Loc[Config.Lan].success["get_trash"], "success")
startSearching(GetEntityCoords(dumpster))
searched[i+1] = dumpster
else
TriggerEvent("QBCore:Notify", Loc[Config.Lan].error["nothing"], "error")
searched[i+1] = dumpster
ClearPedTasks(PlayerPedId())
end
end, 2, 15) -- NumberOfCircles, MS
Above Code needs to be replaced with below:
elseif Config.Minigame == "ps-ui" then
exports['ps-ui']:Circle(function(success)
if success then
TriggerEvent("QBCore:Notify", Loc[Config.Lan].success["get_scrap"], "success")
startSearching(GetEntityCoords(scrapped))
searched[i+1] = scrapped
else
TriggerEvent("QBCore:Notify", Loc[Config.Lan].error["nothing"], "error")
searched[i+1] = scrapped
ClearPedTasks(PlayerPedId())
end
end, 2, 15) -- NumberOfCircles, MS
Myleycyrusvirus commented
In client\scrap.lua