Jump to content

just script.


iiv03

Recommended Posts

For a example, you can try below code.

Client Side :-

local screenW,screenH = guiGetScreenSize()
local progress = 0

addEventHandler("onClientRender",root,
function ()
    progress = progress + 0.99
  local moveto1, moveto2 = interpolateBetween (screenW * 0.1475, screenH * 0.4648, 0, screenW * 0.5049, screenH * 0.4648, 0, progress, "SineCurve")
	dxDrawText(" This is a moving text ", moveto1, moveto2, screenW * 0.5264, screenH * 0.5417, tocolor(35, 204, 219, 255), 2.5, "default-bold", "center", "center", false, false, true, true, true)
end
)

 

Link to comment
On 22/10/2018 at 17:40, DeadthStrock said:

For a example, you can try below code.

Client Side :-


local screenW,screenH = guiGetScreenSize()
local progress = 0

addEventHandler("onClientRender",root,
function ()
    progress = progress + 0.99
  local moveto1, moveto2 = interpolateBetween (screenW * 0.1475, screenH * 0.4648, 0, screenW * 0.5049, screenH * 0.4648, 0, progress, "SineCurve")
	dxDrawText(" This is a moving text ", moveto1, moveto2, screenW * 0.5264, screenH * 0.5417, tocolor(35, 204, 219, 255), 2.5, "default-bold", "center", "center", false, false, true, true, true)
end
)

 

Thanks Man :D

  • Like 1
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...