Jump to content

Inventory error


Recommended Posts

Hi guys, i've got a error in my inventory system, when i want to take a object from a car, i've got a "please wait..." and it don't moove

 

elseif item[1] > 0 then
            local furniture_shop_box_ID = exports["furniture-system"]:getBoxItemID()
            if item[1] == furniture_shop_box_ID then
                triggerEvent("furniture:stock:transfer", source, source, element, item[1], item[2], true)
            end
            if getElementData(source, "furniture:carry:isCarrying") then
                outputChatBox("Vous portez déjà une boîte comprenant des meubles!", source, 255, 0, 0)
                return
            end
            output( element, source, item[1], item[2])
            moveItem( element, source, slot )
            exports.logs:logMessage( name .. " #" .. getElementID(element) .. "->" .. getPlayerName( source ) .. " - " .. getItemName( item[1] ) .. " - " .. item[2], 17)

It is the code of the object (the outputchatbox are in french..).

 

The item i want to take is a furniture ? Can you help me ? Thank's

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...