ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientGUIScroll

Event

onClientGUIScroll

A GUI scroll bar was moved.

Handler

addEventHandler("onClientGUIScroll", root, function() ... end)

Differences from MTA:SA

  • These MTA:SA parameters are not here: element scrolled

In MTA:SA

function(element scrolled)

Source

source is the control.

Example

local bar = guiCreateScrollBar(20, 20, 200, 20, true, false)
addEventHandler("onClientGUIScroll", bar, function()
    outputConsole("Pozycja: " .. guiScrollBarGetScrollPosition(bar))
end)

See also