Jump to content

pa3ck

Members
  • Posts

    1,141
  • Joined

  • Last visited

  • Days Won

    7

pa3ck last won the day on July 10 2017

pa3ck had the most liked content!

6 Followers

About pa3ck

  • Birthday 01/01/2017

Details

  • Occupation
    Software Developer

Recent Profile Visitors

3,631 profile views

pa3ck's Achievements

Banger

Banger (36/54)

209

Reputation

  1. Can you not use getRealTime timestamp and calculate the time that way? You might need to adjust it a bit for local time, since client side it will return the client's PC time rather than the server time, but you can adjust that before a race begins.
  2. I don't understand why can't you just use serverside and forget about the client? What events are you using to trigger the start and end events?
  3. Fórum moderátorként szerinted megmondhatod nekem hogy mit kérdezhetek? Ne vicceljél már Egy kérdés hogyan lehet támadás jellegű? Jó ég...
  4. Szia, kérdést tettem fel, tőle vártam a választ nem tőled, fórum szabályzatot nem sértettem, nem értem miért kérhetnéd tőlem, hogy "mellőzzük az ilyesfajta viselkedést". Egyébként nem egy mostani topic..
  5. There are couple of questions that need to be answered first... you only mention client side, so you don't care whether the blinkers are same for everyone? If so, you can use XML or JSON string in a client file - remember that fromJSON takes a string and converts it into a LUA table and toJSON converts a LUA table to a string that you can store in a file, once you converted the string back to LUA table, you can handle it as any other table.
  6. I'm not 100% sure I understand what you are looking for, but as far as I can understand, you want to get the color code of a specific percentage.. for example you have a scale of 0-500 reputation, you would need to know the color when the player for example has 350 reputation?
  7. Hi, I think the best option would be to use an image instead of dx function.. you can still create the arrow and text with dx functions, but the base gradient would be an image. If you really want to use pure dx, I put together some code that would create the same gradient effect using dxGetTexturePixels & dxSetPixelColor & interpolateBetween See code below: addEventHandler ("onClientResourceStart", resourceRoot, function () texture = dxCreateTexture (300, 25) local pixels = dxGetTexturePixels (texture) for i=0,300 do local progress = 100 / 300 * i / 100 local r, g, b = interpolateBetween ( 255, 0, 0, 255, 255, 0, progress, "Linear") for j=0,25 do dxSetPixelColor (pixels, i, j, r, g, b, 255) end end dxSetTexturePixels (texture, pixels) texture2 = dxCreateTexture (600, 25) local pixels2 = dxGetTexturePixels (texture2) for i=0,300 do local progress = 100 / 300 * i / 100 local r, g, b = interpolateBetween ( 255, 255, 0, 0, 255, 0, progress, "Linear") for j=0,25 do dxSetPixelColor (pixels2, i, j, r, g, b, 255) end end dxSetTexturePixels (texture2, pixels2) end) addEventHandler ("onClientRender", root, function () dxDrawImage (300, 300, 300, 25, texture) dxDrawImage (600, 300, 300, 25, texture2) end) If you need explanation let me know, I can go into detail, but I think it's pretty straight forward.
  8. Akkor most kinek is vannak szövegértelmezési problémai? Én azt mondtam, hogy azok az emberek rontják a közösséget, nem a srácról állítottam. Máskor inkább olvasd el figyelmesebben. Kötekedés lenne, ha megkérdezem, hogy ő pontosan mit is tenne egy szerver készítéshez? Ha igen akkor ne tudd meg mekkora beefet fog kapni másoktól..
  9. Én értelmezem félre? Én nem értelmeztem semmit félre barátom, én csak érdeklődtem.. A közösség viszont elmondom neked miért romlott meg az elmúlt pár évben. Mindenki saját szervert akar, pedig se a tudása se a képessége nem engedi, azt hiszi, hogy ha egy havi 1500 forintos VPS-t biztosit akkor minden meg van oldva, illetve egy 0 profittal rendelkező szerver x százalékát juttatás címszó alatt ígérget, de sok szerencsét, biztos vagyok benne, hogy találni fogsz fejlesztőket.
  10. Szia. Tehát keresel programozót, web fejlesztőt, designert illetve modellezőt. Magyarul minden pozícióra keresel embert, ami azt jelenti, hogy te semmit nem nyújtasz. Miért jönne akárki is hozzád, mit tudsz TE hozzá tenni a projecthez?
  11. Good job linking bunch of leaked resources...
  12. In the first instance, you set it on the window element, not the button, that's why it only worked when you clicked on the window and nothing else. Using getResourceRootElement(getThisResource()) OR resourceRoot is advised, since you only want to hook the event to the GUI being created by this resource anyway.
  13. Use a timer to check the current speed of the vehicle and if it's above 70 and it's not already out, open it out.
  14. You probably have some resource running that sets back the alpha of the player. In your first code you set it every 3 seconds even when it's already 50, then it's being set back, that is why it flickers every 3 seconds. In Lysanders code it sets it every 1 second that is why it flickers even faster. Search for the keyword setElementAlpha in your resources folder using Notepad++ or similar.
×
×
  • Create New...