Open Myleycyrusvirus opened 1 year ago
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
In client\scrap.lua
Above Code needs to be replaced with below: