Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

Bug fix weapon duplication#183

Open
GalaxHD551 wants to merge 6 commits into
frederic2ec:masterfrom
GalaxHD551:patch-4
Open

Bug fix weapon duplication#183
GalaxHD551 wants to merge 6 commits into
frederic2ec:masterfrom
GalaxHD551:patch-4

Conversation

@GalaxHD551

Copy link
Copy Markdown
Contributor

@rdlh rdlh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

            if weapon ~= 0 then
                if drop ~= 1 then
                    for slot, v in pairs({1, 2, 3}) do
                        local slotWeapon, ammo = GetPlayerWeapon(player, slot)
                        if slotWeapon == tonumber(weapon) then
                            UnequipWeapon(player, inventoryId, item, slot)
                            UpdateUIInventory(player, inventoryId, item, 0)
                        end
                    end
                end
            end

C'est ok aussi comme fix ?

@GalaxHD551

GalaxHD551 commented Mar 1, 2020

Copy link
Copy Markdown
Contributor Author

@rdlh Ouaip ça revient au même, du coup j'ai changé pour ton code pour faire plus propre

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants