Jump to content



Recommended Posts

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


Link to post
  • Moderators

If the "coordinate" extends beyond the size of the image, it starts from the beginning.

You need to make sure you can't go over the total size of the image with scrolling.

Link to post


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;

  dxDrawImageSection(pulseX, pulseY, pulseW, pulseH, x, 0, 388, 77, pulse)
Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...