Jump to content

Jurandovsky

Members
  • Posts

    4
  • Joined

  • Last visited

Details

  • Gang
    bugs

Jurandovsky's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Use interpolation for example. local sw, sh = guiGetScreenSize() function getProgress( addtick ) local now = getTickCount() local elapsedTime = now - start local duration = start+addtick - start local progress = elapsedTime / duration return progress end function render() local alpha = interpolateBetween(255, 0, 0, 0, 0, 0, getProgress(5000), "Linear") -- Linear fading text in 5 seconds dxDrawText("something", sw/2, sh/2, 0, 0, tocolor(255,255,255, alpha), 1, "sans") if alpha < 20 then removeEventHandler("onClientRender", root, render) end end function something() start = getTickCount() addEventHandler("onClientRender", root, render) end something like that
  2. I repaired it, thanks anyway for help.
  3. Wow... But i've tried with this and nothing.. i was trying something like : bindKey("lshift", "down", function() -- load url -- etc end) and nothing.
  4. Hello. Yesterday i tried to make a script which uses js, css, html and lua. When i almost done, i've founded last one problem.. I can't or i don't know how to hook my lua-code to bindkey. Here is a code about gui browser, if i remove that eventhandler, then code isn't working. : addEventHandler("onClientBrowserCreated", browser, function() if isPedInVehicle(localPlayer) then loadBrowserURL(source, "http://mta/interakcja/web/web.html") focusBrowser(source) outputChatBox("Please wait until page will load!") showCursor(true) end end) Best regards ;>
×
×
  • Create New...