Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite scrapping when using ps-ui #20

Open
Myleycyrusvirus opened this issue May 8, 2023 · 1 comment
Open

Infinite scrapping when using ps-ui #20

Myleycyrusvirus opened this issue May 8, 2023 · 1 comment

Comments

@Myleycyrusvirus
Copy link

                    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
Copy link
Author

In client\scrap.lua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant