what variable do I put in DX?
addEventHandler("onClientTransferBoxProgressChange", root, function(size, total)
barprogress = ( size / total )
end
)
addEventHandler("onClientTransferBoxVisibilityChange", root, function(vis)
barvisible = vis
end
)
barvisible = isTransferBoxVisible()
dxDrawImage(botX+sizeX+343, botX2+sizeX2+701, 592/100*barvisible, 6, 'assets/progress_bar.png', 0, 0, 0, tocolor(43, 171, 226, 255), true)
--or
dxDrawImage(botX+sizeX+343, botX2+sizeX2+701, 592/100*barprogress, 6, 'assets/progress_bar.png', 0, 0, 0, tocolor(43, 171, 226, 255), true)
sorry, but I confused