Jump to content

FileEX

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by FileEX

  1. Just use negative height and rectangle will be rendered from bottom to top
  2. You will need it: dxDrawMaterialLine3D - For display image/icon in 3D space getPedBonePosition - For get the player head position onClientRender - For rendering material line 3D getTickCount - For count visibility time for the material line isPedInVehicle onClientMarkerHit You can also use getScreenFromWorldPosition with dxDrawImage instead of material line 3D but the final effect will be less neat.
  3. Try getWorldFromScreenPosition to get the world position from the crosshair 2D position
  4. FileEX

    settime

    If this is client side code you should make something like this outputChatBox("#F70000[Info] #FFFFFFThe time has been set to #96FF2714:00 #FFFFFFby a #0093FF"..getPlayerName(localPlayer), 247, 0, 0, true) This message will be shown only for the player which use command "moon", not for everyone. If you want show this message and set time to the same value for everyone player your should make it on server side.
  5. I have this code, but it is not endless. It comes to the end of the graphics and jumps to the beginning, it's not the effect I wanted to get local x = 0 local ecgSpeed = 1; addEventHandler('onClientRender', root, function() x = x - ecgSpeed if (x <= -388) then x = 0; end dxDrawImageSection(pulseX, pulseY, pulseW, pulseH, x, 0, 388, 77, pulse) end);
  6. How can I do such endless sliding? This is my old script, but unfortunately I don't have it and I don't remember completely how I did it then. I know it's about dxDrawImageSection, but I can't remember what exactly https://www.youtube.com/watch?v=EoIjcwZ8Gqg
  7. Use dxCreateTexture instead of image path, and use destroyElement when do you want remove image from memory
  8. If you don't use ACL accounts, use table with getPlayerSerial
  9. Hi i want make circle progress bar with dxDrawImageSection and i do it, but i have weird bug and i don't know how can i fix it. My progress bar with 1% https://imgur.com/o7uCKPX My progress bar with 59% https://imgur.com/JAhOUdA I know about width is wrong, but i don't know how can i fix it My code local a = 59; addEventHandler('onClientRender', root, function() if (a <= 60) then local div = a / 60; dxDrawImageSection(rend['rpm'][1], rend['rpm'][2], rend['rpm'][3] * div, rend['rpm'][3]*0.6, 0, 0, 268 * div, 268*0.6, tex[9], 0,0,0, 0xFFFFFFFF); else dxDrawImageSection(rend['rpm'][1], rend['rpm'][2], rend['rpm'][3], rend['rpm'][3] * (a / 100), 0, 0, 268, 268 * (a / 100), tex[9], 0,0,0, 0xFFFFFFFF); end end); addCommandHandler('setpr', function(cmd,b) a = tonumber(b); end);
×
×
  • Create New...