<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=INeewbie</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=INeewbie"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/INeewbie"/>
	<updated>2026-05-09T08:32:12Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiScrollBarGetScrollPosition&amp;diff=50327</id>
		<title>GuiScrollBarGetScrollPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiScrollBarGetScrollPosition&amp;diff=50327"/>
		<updated>2017-01-12T23:04:06Z</updated>

		<summary type="html">&lt;p&gt;INeewbie: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{client function}}&lt;br /&gt;
This function gets the scroll amount of a scrollbar as a percentage.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float guiScrollBarGetScrollPosition ( gui-scrollBar theScrollBar )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theScrollBar ''': The scrollbar you want to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[float]] ranging between 0 and 100, representing the amount the scrollbar has been scrolled.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example outputs a message with the new scroll position when a scrollbar is scrolled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function OnScroll(Scrolled)&lt;br /&gt;
	outputChatBox(&amp;quot;The new scroll position is &amp;quot;..guiScrollBarGetScrollPosition(Scrolled))&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientGUIScroll&amp;quot;,getRootElement(),OnScroll)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
[[Catogory:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>INeewbie</name></author>
	</entry>
</feed>