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

Conversation

@GalaxHD551
Copy link
Contributor

Copy link
Collaborator

@rdlh rdlh left a comment

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

GalaxHD551 commented Mar 1, 2020

@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