Jump to content

Bad argument @ 'SetElementData' Erro


Recommended Posts

function checkVehicleInfo(element)

									itemTable = {}
									--mouse = true
									triggerEvent("progressService", localPlayer, 1, "#ffffffCarregando inventário")
									antibug = setTimer(function()
									if not showInventory then
										showInventory = true
									end
									--mouse = false
									setElementData(source, 'playerInUse', true) --O Erro está aqui! segundo o debugscript
									activeInvState = 'bag'
									removeEventHandler("onClientRender", root, drawInventory)
									addEventHandler("onClientRender", root, drawInventory)
									end,1000,1)
									
	triggerServerEvent('btcMTA->#getElementItem', localPlayer, element)
    openInventory(element)
	
    setElementData(source, 'char >> element', element)
end
addEvent("btcMTA->#checkVehicleInfo", true)
addEventHandler("btcMTA->#checkVehicleInfo", getRootElement(), checkVehicleInfo)

A função é o seguinte; Quando o player está com o inventário do veículo aberto ele é impossibilitado de receber qualquer item, porém está dando bad argument 'SetElementData'

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...