Jump to content

dxDrawImageSection


FileEX

Recommended Posts

 

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);
Link to comment

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...