2013martin1212 Posted June 18, 2015 Share Posted June 18, 2015 I start to make an inventory on my own with the wiki , but i figure out its not that easy like i think on the start It looks like now : http://kepfeltoltes.hu/150618/mta-screen_2015-06-17_07-38-49_www.kepfeltoltes.hu_.png I have some resource done ,but i dont how to do it now please some one help me sourceC: local sX, sY = guiGetScreenSize() local iX, iY = sX/2, sY/2 local gW, gH = 536, 291 local alap = guiCreateStaticImage(sX-gW-10, iY-gH/2, gW, gH, "inventory.png", false) function renderItems() local pItem1, pItem2, pItem3, pItem4, pItem5, pItem6, pItem7, pItem8, pItem9, pItem10, pItem11, pItem12, pItem13, pItem14, pItem15, pItem16, pItem17, pItem18, pItem19, pItem20, pItem21, pItem22, pItem23, pItem24, pItem25, pItem26, pItem27, pItem28, pItem29, pItem30, pItem31, pItem32, pItem33, pItem34, pItem35, pItem36, pItem37, pItem38, pItem39, pItem40, pItem41, pItem42, pItem43, pItem44, pItem45, pItem46, pItem47, pItem48, pItem49, pItem50 = getElementData(localPlayer, "acc:pItem1") or 0, getElementData(localPlayer, "acc:pItem2") or 0, getElementData(localPlayer, "acc:pItem3") or 0, getElementData(localPlayer, "acc:pItem4") or 0, getElementData(localPlayer, "acc:pItem5") or 0, getElementData(localPlayer, "acc:pItem6") or 0, getElementData(localPlayer, "acc:pItem7") or 0, getElementData(localPlayer, "acc:pItem8") or 0, getElementData(localPlayer, "acc:pItem9") or 0, getElementData(localPlayer, "acc:pItem10") or 0, getElementData(localPlayer, "acc:pItem11") or 0, getElementData(localPlayer, "acc:pItem12") or 0, getElementData(localPlayer, "acc:pItem13") or 0, getElementData(localPlayer, "acc:pItem14") or 0, getElementData(localPlayer, "acc:pItem15") or 0, getElementData(localPlayer, "acc:pItem16") or 0, getElementData(localPlayer, "acc:pItem17") or 0, getElementData(localPlayer, "acc:pItem18") or 0, getElementData(localPlayer, "acc:pItem19") or 0, getElementData(localPlayer, "acc:pItem20") or 0, getElementData(localPlayer, "acc:pItem21") or 0, getElementData(localPlayer, "acc:pItem22") or 0, getElementData(localPlayer, "acc:pItem23") or 0, getElementData(localPlayer, "acc:pItem24") or 0, getElementData(localPlayer, "acc:pItem25") or 0, getElementData(localPlayer, "acc:pItem26") or 0, getElementData(localPlayer, "acc:pItem27") or 0, getElementData(localPlayer, "acc:pItem28") or 0, getElementData(localPlayer, "acc:pItem29") or 0, getElementData(localPlayer, "acc:pItem30") or 0, getElementData(localPlayer, "acc:pItem31") or 0, getElementData(localPlayer, "acc:pItem32") or 0, getElementData(localPlayer, "acc:pItem33") or 0, getElementData(localPlayer, "acc:pItem34") or 0, getElementData(localPlayer, "acc:pItem35") or 0, getElementData(localPlayer, "acc:pItem36") or 0, getElementData(localPlayer, "acc:pItem37") or 0, getElementData(localPlayer, "acc:pItem38") or 0, getElementData(localPlayer, "acc:pItem39") or 0, getElementData(localPlayer, "acc:pItem40") or 0, getElementData(localPlayer, "acc:pItem41") or 0, getElementData(localPlayer, "acc:pItem42") or 0, getElementData(localPlayer, "acc:pItem43") or 0, getElementData(localPlayer, "acc:pItem44") or 0, getElementData(localPlayer, "acc:pItem45") or 0, getElementData(localPlayer, "acc:pItem46") or 0, getElementData(localPlayer, "acc:pItem47") or 0, getElementData(localPlayer, "acc:pItem48") or 0, getElementData(localPlayer, "acc:pItem49") or 0, getElementData(localPlayer, "acc:pItem50") or 0 --[[local itemRender1 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem1 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender2 = dxDrawImage(sX-441, iY-118, 42, 42, 'pictures/' ..pItem2 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender3 = dxDrawImage(sX-395, iY-118, 42, 42, 'pictures/' ..pItem3 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender4 = dxDrawImage(sX-349, iY-118, 42, 42, 'pictures/' ..pItem4 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender5 = dxDrawImage(sX-303, iY-118, 42, 42, 'pictures/' ..pItem5 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender6 = dxDrawImage(sX-257, iY-118, 42, 42, 'pictures/' ..pItem6 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender7 = dxDrawImage(sX-211, iY-118, 42, 42, 'pictures/' ..pItem7 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender8 = dxDrawImage(sX-165, iY-118, 42, 42, 'pictures/' ..pItem8 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender9 = dxDrawImage(sX-119, iY-118, 42, 42, 'pictures/' ..pItem9 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender10 = dxDrawImage(sX-73, iY-118, 42, 42, 'pictures/' ..pItem10 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender11 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem11 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender12 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem12 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender13 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem13 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender14 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem14 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender15 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem15 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender16 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem16 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender17 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem17 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender18 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem18 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender19 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem19 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender20 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem20 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender21 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem21 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender22 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem22 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender23 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem23 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender24 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem24 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender25 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem25 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender26 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem26 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender27 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem27 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender28 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem28 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender29 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem29 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender30 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem30 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender31 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem31 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender32 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem32 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender33 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem33 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender34 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem34 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender35 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem35 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender36 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem36 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender37 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem37 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender38 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem38 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender39 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem39 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender40 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem40 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender41 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem41 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender42 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem42 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender43 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem43 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender44 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem44 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender45 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem45 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender46 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem46 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender47 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem47 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender48 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem48 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender49 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem49 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender50 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem50 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true)]] end addEventHandler("onClientRender", getRootElement(), renderItems) and my sourceS local file = fileCreate("anyad.lua") for i = 1, 50 do fileWrite(file, "local itemRender" .. i .." = dxDrawImage(sX-488, iY-118, 43, 43, 'pictures/' ..pItem" .. i .." .. '.png', 0, 0, 0, tocolor(255, 255, 255), true)\n") end And now i get lost please some one help me how to make functions for the image etc. I dont say that to some one make it for me because i want to learn it Link to comment
Gr0x Posted June 18, 2015 Share Posted June 18, 2015 What do you want exactly? There are everything you need to display the images in that "code". Link to comment
2013martin1212 Posted June 18, 2015 Author Share Posted June 18, 2015 Gr0x are you should no about the devgaming or other words valhalla rp gamemode i want to make an inventory like that Link to comment
xeon17 Posted June 18, 2015 Share Posted June 18, 2015 Sorry, but i can't understand anything , please speak english Link to comment
jingzhi Posted June 19, 2015 Share Posted June 19, 2015 I start to make an inventory on my own with the wiki , but i figure out its not that easy like i think on the start It looks like now : http://kepfeltoltes.hu/150618/mta-screen_2015-06-17_07-38-49_www.kepfeltoltes.hu_.png I have some resource done ,but i dont how to do it now please some one help me sourceC: local sX, sY = guiGetScreenSize() local iX, iY = sX/2, sY/2 local gW, gH = 536, 291 local alap = guiCreateStaticImage(sX-gW-10, iY-gH/2, gW, gH, "inventory.png", false) function renderItems() local pItem1, pItem2, pItem3, pItem4, pItem5, pItem6, pItem7, pItem8, pItem9, pItem10, pItem11, pItem12, pItem13, pItem14, pItem15, pItem16, pItem17, pItem18, pItem19, pItem20, pItem21, pItem22, pItem23, pItem24, pItem25, pItem26, pItem27, pItem28, pItem29, pItem30, pItem31, pItem32, pItem33, pItem34, pItem35, pItem36, pItem37, pItem38, pItem39, pItem40, pItem41, pItem42, pItem43, pItem44, pItem45, pItem46, pItem47, pItem48, pItem49, pItem50 = getElementData(localPlayer, "acc:pItem1") or 0, getElementData(localPlayer, "acc:pItem2") or 0, getElementData(localPlayer, "acc:pItem3") or 0, getElementData(localPlayer, "acc:pItem4") or 0, getElementData(localPlayer, "acc:pItem5") or 0, getElementData(localPlayer, "acc:pItem6") or 0, getElementData(localPlayer, "acc:pItem7") or 0, getElementData(localPlayer, "acc:pItem8") or 0, getElementData(localPlayer, "acc:pItem9") or 0, getElementData(localPlayer, "acc:pItem10") or 0, getElementData(localPlayer, "acc:pItem11") or 0, getElementData(localPlayer, "acc:pItem12") or 0, getElementData(localPlayer, "acc:pItem13") or 0, getElementData(localPlayer, "acc:pItem14") or 0, getElementData(localPlayer, "acc:pItem15") or 0, getElementData(localPlayer, "acc:pItem16") or 0, getElementData(localPlayer, "acc:pItem17") or 0, getElementData(localPlayer, "acc:pItem18") or 0, getElementData(localPlayer, "acc:pItem19") or 0, getElementData(localPlayer, "acc:pItem20") or 0, getElementData(localPlayer, "acc:pItem21") or 0, getElementData(localPlayer, "acc:pItem22") or 0, getElementData(localPlayer, "acc:pItem23") or 0, getElementData(localPlayer, "acc:pItem24") or 0, getElementData(localPlayer, "acc:pItem25") or 0, getElementData(localPlayer, "acc:pItem26") or 0, getElementData(localPlayer, "acc:pItem27") or 0, getElementData(localPlayer, "acc:pItem28") or 0, getElementData(localPlayer, "acc:pItem29") or 0, getElementData(localPlayer, "acc:pItem30") or 0, getElementData(localPlayer, "acc:pItem31") or 0, getElementData(localPlayer, "acc:pItem32") or 0, getElementData(localPlayer, "acc:pItem33") or 0, getElementData(localPlayer, "acc:pItem34") or 0, getElementData(localPlayer, "acc:pItem35") or 0, getElementData(localPlayer, "acc:pItem36") or 0, getElementData(localPlayer, "acc:pItem37") or 0, getElementData(localPlayer, "acc:pItem38") or 0, getElementData(localPlayer, "acc:pItem39") or 0, getElementData(localPlayer, "acc:pItem40") or 0, getElementData(localPlayer, "acc:pItem41") or 0, getElementData(localPlayer, "acc:pItem42") or 0, getElementData(localPlayer, "acc:pItem43") or 0, getElementData(localPlayer, "acc:pItem44") or 0, getElementData(localPlayer, "acc:pItem45") or 0, getElementData(localPlayer, "acc:pItem46") or 0, getElementData(localPlayer, "acc:pItem47") or 0, getElementData(localPlayer, "acc:pItem48") or 0, getElementData(localPlayer, "acc:pItem49") or 0, getElementData(localPlayer, "acc:pItem50") or 0 --[[local itemRender1 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem1 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender2 = dxDrawImage(sX-441, iY-118, 42, 42, 'pictures/' ..pItem2 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender3 = dxDrawImage(sX-395, iY-118, 42, 42, 'pictures/' ..pItem3 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender4 = dxDrawImage(sX-349, iY-118, 42, 42, 'pictures/' ..pItem4 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender5 = dxDrawImage(sX-303, iY-118, 42, 42, 'pictures/' ..pItem5 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender6 = dxDrawImage(sX-257, iY-118, 42, 42, 'pictures/' ..pItem6 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender7 = dxDrawImage(sX-211, iY-118, 42, 42, 'pictures/' ..pItem7 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender8 = dxDrawImage(sX-165, iY-118, 42, 42, 'pictures/' ..pItem8 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender9 = dxDrawImage(sX-119, iY-118, 42, 42, 'pictures/' ..pItem9 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender10 = dxDrawImage(sX-73, iY-118, 42, 42, 'pictures/' ..pItem10 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender11 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem11 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender12 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem12 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender13 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem13 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender14 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem14 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender15 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem15 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender16 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem16 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender17 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem17 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender18 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem18 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender19 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem19 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender20 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem20 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender21 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem21 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender22 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem22 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender23 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem23 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender24 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem24 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender25 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem25 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender26 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem26 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender27 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem27 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender28 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem28 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender29 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem29 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender30 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem30 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender31 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem31 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender32 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem32 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender33 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem33 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender34 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem34 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender35 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem35 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender36 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem36 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender37 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem37 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender38 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem38 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender39 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem39 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender40 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem40 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender41 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem41 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender42 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem42 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender43 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem43 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender44 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem44 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender45 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem45 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender46 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem46 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender47 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem47 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender48 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem48 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender49 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem49 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true) local itemRender50 = dxDrawImage(sX-488, iY-118, 42, 42, 'pictures/' ..pItem50 .. '.png', 0, 0, 0, tocolor(255, 255, 255), true)]] end addEventHandler("onClientRender", getRootElement(), renderItems) and my sourceS local file = fileCreate("anyad.lua") for i = 1, 50 do fileWrite(file, "local itemRender" .. i .." = dxDrawImage(sX-488, iY-118, 43, 43, 'pictures/' ..pItem" .. i .." .. '.png', 0, 0, 0, tocolor(255, 255, 255), true)\n") end And now i get lost please some one help me how to make functions for the image etc. I dont say that to some one make it for me because i want to learn it I think you shouldn't use elementData instead you should use the sql database for an inventory Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now