Jump to content

Chopper

Members
  • Posts

    83
  • Joined

  • Last visited

Everything posted by Chopper

  1. Multex is a Flux implementation for Multi Theft Auto. https://github.com/molnarmark/multex
  2. Chopper

    Scoreboard

    Moving every player to a new "slot" in the table? Thats not really a solution.. Edit: Got it working. Ty.
  3. Chopper

    Scoreboard

    Hi. So currently, im working on a scoreboard. I have some problems with the player scrolling. What i want to do is, when the player scrolls, the scoreboard should move too, so for example, player1 in the first bar becomes player2, the player2 in the second back becomes player3, and so on. The code i currently have: local x,y = guiGetScreenSize() local renderData = {} renderData.centerX = x / 2 - 317.5 renderData.centerY = y / 2 - 229.5 renderData.bgWidth = 635 renderData.bgHeight = 459 renderData.playersPerPage = 10 renderData.players = {} renderData.currentRow = 1 renderData.counter = 1 --testtable filling for i=1, 50, 1 do renderData.players[i] = "player"..i end addEventHandler("onClientRender", getRootElement(), function() --background dxDrawImage(renderData.centerX, renderData.centerY, renderData.bgWidth, renderData.bgHeight, "bg.png") --problem with this. for i=1, renderData.playersPerPage do dxDrawText(renderData.players[szamlalo], x/2-300, 200 - y * 0.03 + (y * 0.05 * i)+15, x, y, tocolor(255, 255, 255, 255)) end --drawing out the bars for the information for k=1, 10 do dxDrawImage(x/2-300, 200 - y * 0.003 + (y * 0.05 * k)-15, 599, 31, "bar.png") end end ) bindKey("mouse_wheel_up", "down", function() if renderData.currentRow > 1 then --renderData.currentRow = renderData.currentRow - 1 renderData.counter = renderData.counter - 1 end end ) bindKey("mouse_wheel_down", "down", function() if renderData.currentRow < 10 then -- renderData.currentRow = renderData.currentRow + 1 renderData.counter = renderData.counter + 1 end end ) Thanks.
  4. Hi everyone, what i want to do is, for example, have some kind of a text, lets say this text is "test". I want to draw this text on the screen with dxDrawText, for example, 18 times, but in a different y position. i tried a simple for loop, and added +10 to the y everytime the loop started, but all the text that was previously drawn out in this loop got that y position too. Any solutions? [need it for a scoreboard.]
  5. http://prntscr.com/2rl6l5 (kikellett valamivel tölteni a teret, azért van a szöveg. Nem, a modból nemlesz szerver.) http://prntscr.com/2rl73w (kocsi ki lesz cserélve, az információ természetesen nem igazi.) http://prntscr.com/2rl7iz http://prntscr.com/2rl7q1 (pakolgatós, itemkidobálás és átadás készül.) http://prntscr.com/2rl8wi http://prntscr.com/2rl98m (szövegpozició tesztelése miatt ez a szöveg.) Készül az interakció rendszer, autókereskedés, és minden egyéb. Kulcsrendszer, adminrendszer, adminparancsok továbbá kész, de az nem vizuális. Nem értem a kérdést.
  6. Nemvagyok see buzi. Ismerem a fejlesztőket, és ez itt ki is merül. Szerintem többet tettem már le az asztalra mint te, nem is egy téren, de ezt nem veled fogom megbeszélni. Aki ismer, az tudja minden egyéb tevékenységem, aki meg nemismer, az nyílván nem.
  7. Szerintem itt be is fejezhetjük a beszélgetést. Ennél mélyebbre már nemnagyon süllyedhettek.
  8. Nyílván egyedi képek lettek felhasználva, az már túl feltünő ha a képeket is viszitek.
  9. Alapjában véve legalább 3x elmondtam eddig, hogy nem azzal van probléma, hogy nem egycsíkos a HUD, hanem az, hogy amit a See HUD-ról lelehetett koppintani, az mind megtalálható nálatok. Ugyanebben a felépítésben, elrendezésben, teljesen ugyanaz, csak minőségtelen grafika van mögötte, és nem Jesse munkája. Ha a képeket visszacserélnék, ugyan az lenne az egész. "Lejárattam magam előtted? Miért, ki a faszom vagy Te? Egy senkiházi, aki csak itt osztja a szarságát, és csak okoskodni tud a semmire." Az alábbi kijelentésedet szerintem meg te sem gondoltad komolyan, ha igen, azzal még mindig magadat minősíted. Edit: Hozzátenném aztis, hogy tényleg, valóban, teljes mértékben nyitottak vagytok a kritikára. De ezekszerint csak abban az esetben, ha az pozitív.
  10. Nemtudom mitvártok ha alapból egy SeeMTA v2-ből koppintott huddal kezditek a "fejlesztést". Itt már lejárattátok magatokat előttem, és Image előtt is, és valószínűleg azok előtt is, aki ide benéznek. Kérdem én, ezek után mire számítotok?
  11. Nehogy azthidd hogy érdekel a "mod" amit csináltok, amit inkább szánalmas szárnypróbálgatásnak neveznék. De nemsüllyedek le hozzátok, részemről lezártnak tartom a beszélgetést.
  12. "if you what I mean..".. Csodálatos angollal rendelkezem fiam, ilyenkor a balta segít. Mindenbe bele is kötök, mert egyenlőre másoláson és pár autó kicserélésén kívül mást nemláttam. Edit: Nem a healthbarral van a probléma, hanem az egész felépítésével, elrendezésével.
  13. Én nemigen törekszem ötletlopásra, azért van egycsíkos megoldás.
  14. http://prntscr.com/2qlx83 Saját..
  15. A nemrég kirakott HUD-ot látva nagyon SeeMTA ötletlopásos dolognak tartom én ezt.
  16. Element in GTA. vehicles, objects, peds.
  17. Hello, What i need help with is, i want to detect if the player hovers the cursor on an element without clicking on it, then attach it to a function. is it possible? Thanks
  18. Chopper

    HELP!

    function playerCarSell ( source, cmd) if(isPedInVehicle(source)) then removePedFromVehicle (source) local playercar = getPedOccupiedVehicle ( source ) if(getElementData ( playercar, "owner" ) == getPlayerName ( source )) then setElementData (playercar,"owner","Nobody") givePlayerMoney ( source, getElementData ( playercar, "price" )/100*50 ) outputChatBox ("You sold your car!",source, 243,149,72 ) saveCars() else outputChatBox ("Error: It's not your car!",source, 255,255,127 ) end else outputChatBox ("Error: You're not the car!",source, 255,255,127 ) end end addCommandHandler ("sellcar",playerCarSell)
  19. Use: GetDistanceBetweenPoints3D
  20. Chopper

    onMarkerHit

    Hello. How can i detect if a marker i hit is supposed to be the one i want to hit? for example, i have 2 markers, they both execute different stuff, but it will execute if i use onMarkerHit Event. Thank you.
  21. Im not asking for help with the script itself, im asking for help about what method should i use..
  22. Hello. So recently, i started working on an Inventory system. I have a panel made with dx Drawing, it has item slots. I can get the items out from the mysql table into a lua table to store it in, but i have no idea how to get them in the slots, to check if a slot is taken already, etc, etc. Can anyone help me with that? Thank you.
×
×
  • Create New...