<?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=Xerox8521</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=Xerox8521"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Xerox8521"/>
	<updated>2026-04-22T19:12:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleFuelTankExplodable&amp;diff=71190</id>
		<title>SetVehicleFuelTankExplodable</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleFuelTankExplodable&amp;diff=71190"/>
		<updated>2021-06-13T14:11:32Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Syntax Method&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function changes the 'explodable state' of a vehicle's fuel tank, which toggles the ability to blow the vehicle up by shooting the tank. This function will have no effect on vehicles with tanks that cannot be shot in single player.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setVehicleFuelTankExplodable ( vehicle theVehicle, bool explodable )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[vehicle]]:setFuelTankExplodable}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theVehicle''': The [[vehicle]] you wish to change the fuel tank explodable state of.&lt;br /&gt;
*'''explodable''': A boolean value representing whether or not the fuel tank will be explodable.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the vehicle's fuel tank explodable state was successfully changed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Serverside example&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example will make vehicles' fuel tanks explodable for 10 seconds after they're entered.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- create a table to keep track of vulnerable vehicles&lt;br /&gt;
-- so we don't set the state-reset timer twice when reentering a vulnerable vehicle&lt;br /&gt;
local isVulnerable = {}&lt;br /&gt;
&lt;br /&gt;
-- this function makes a vehicle vulnerable and sets a timer to unset it in 10 seconds&lt;br /&gt;
function setVehicleVulnerable ( theVehicle, enteredSeat )&lt;br /&gt;
    -- we'll ignore vehicles that are already vulnerable.&lt;br /&gt;
    if not isVulnerable[theVehicle] then&lt;br /&gt;
        -- if they're getting into the driver seat&lt;br /&gt;
        if enteredSeat == 0 then&lt;br /&gt;
            -- make the fuel tank explodable&lt;br /&gt;
            setVehicleFuelTankExplodable ( theVehicle, true )&lt;br /&gt;
            -- flag this vehicle as vulnerable&lt;br /&gt;
            isVulnerable[theVehicle] = true&lt;br /&gt;
            -- make it non vulnerable in 10 seconds&lt;br /&gt;
            setTimer ( unsetVehicleVulnerable, 10000, 1, theVehicle )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- this function makes a vehicle not vulnerable&lt;br /&gt;
function unsetVehicleVulnerable ( theVehicle )&lt;br /&gt;
    -- make the fuel tank unexplodable&lt;br /&gt;
    setVehicleFuelTankExplodable ( theVehicle, false )&lt;br /&gt;
    -- remove the vulnerable flag&lt;br /&gt;
    isVulnerable[theVehicle] = nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- add the 'makeVehicleVulnerable' function as a handler for &amp;quot;onPlayerVehicleEnter&amp;quot;&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerVehicleEnter&amp;quot;, root, setVehicleVulnerable )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementCollidableWith&amp;diff=64612</id>
		<title>SetElementCollidableWith</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementCollidableWith&amp;diff=64612"/>
		<updated>2019-11-04T17:06:25Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function can be used to set an element to collide with another element. An element with collisions disabled does not interact physically with the other element.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Note:''' You can only use this function with the element types listed below.&lt;br /&gt;
*[[Player]]&lt;br /&gt;
*[[Ped]]&lt;br /&gt;
*[[Vehicle]]&lt;br /&gt;
*[[Object]]&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setElementCollidableWith ( element theElement, element withElement, bool enabled ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[element]]:setCollidableWith||isElementCollidableWith}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The [[element]] which colliding you want to change&lt;br /&gt;
*'''withElement:''' The other [[element]] you wish the first entity to collide with&lt;br /&gt;
*'''enabled:''' A boolean to indicate whether elements should be able to collide with eachother (''true'') or not (''false'')&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the collisions were set succesfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ghostmode_on()&lt;br /&gt;
	local playerVehicle = getPedOccupiedVehicle(localPlayer) -- Get the players vehicle&lt;br /&gt;
	if(playerVehicle) then -- Check the return value.&lt;br /&gt;
		for i,v in pairs(getElementsByType(&amp;quot;vehicle&amp;quot;)) do --LOOP through all vehicles&lt;br /&gt;
			setElementCollidableWith(v, playerVehicle, false) -- Set the collison off with the other vehicles.&lt;br /&gt;
		end&lt;br /&gt;
		outputChatBox(&amp;quot;You are now a Ghost&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;ghostmode&amp;quot;, ghostmode_on) -- Add the /ghostmode Command.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client element functions}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementCollidableWith&amp;diff=64611</id>
		<title>SetElementCollidableWith</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementCollidableWith&amp;diff=64611"/>
		<updated>2019-11-04T17:04:58Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function can be used to set an element to collide with another element. An element with collisions disabled does not interact physically with the other element.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Note:''' You can only use this function with the element types listed below.&lt;br /&gt;
*[[Player]]&lt;br /&gt;
*[[Ped]]&lt;br /&gt;
*[[Vehicle]]&lt;br /&gt;
*[[Object]]&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setElementCollidableWith ( element theElement, element withElement, bool enabled ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[element]]:setCollidableWith||isElementCollidableWith}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The [[element]] which colliding you want to change&lt;br /&gt;
*'''withElement:''' The other [[element]] you wish the first entity to collide with&lt;br /&gt;
*'''enabled:''' A boolean to indicate whether elements should be able to collide with eachother (''true'') or not (''false'')&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the collisions were set succesfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function ghostmode_on()&lt;br /&gt;
	local playerVehicle = getPedOccupiedVehicle(localPlayer) -- Get the players vehicle&lt;br /&gt;
	if(playerVehicle) then -- Check the return value.&lt;br /&gt;
		for index,vehicle in pairs(getElementsByType(&amp;quot;vehicle&amp;quot;)) do --LOOP through all vehicles&lt;br /&gt;
			setElementCollidableWith(vehicle, playerVehicle, false) -- Set the collison off with the other vehicles.&lt;br /&gt;
		end&lt;br /&gt;
		outputChatBox(&amp;quot;You are now a Ghost&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;ghostmode&amp;quot;, ghostmode_on) -- Add the /ghostmode Command.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client element functions}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementCollidableWith&amp;diff=64610</id>
		<title>SetElementCollidableWith</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementCollidableWith&amp;diff=64610"/>
		<updated>2019-11-04T16:56:55Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: No need for ipairs when pairs is more than enough. | Removed player argument in outputChatbox as the client version doesn't require it.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function can be used to set an element to collide with another element. An element with collisions disabled does not interact physically with the other element.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Note:''' You can only use this function with the element types listed below.&lt;br /&gt;
*[[Player]]&lt;br /&gt;
*[[Ped]]&lt;br /&gt;
*[[Vehicle]]&lt;br /&gt;
*[[Object]]&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setElementCollidableWith ( element theElement, element withElement, bool enabled ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[element]]:setCollidableWith||isElementCollidableWith}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The [[element]] which colliding you want to change&lt;br /&gt;
*'''withElement:''' The other [[element]] you wish the first entity to collide with&lt;br /&gt;
*'''enabled:''' A boolean to indicate whether elements should be able to collide with eachother (''true'') or not (''false'')&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the collisions were set succesfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function ghostmode_on()&lt;br /&gt;
	local v = getPedOccupiedVehicle(localPlayer) -- Get her's Vehicle ID&lt;br /&gt;
	for index,vehicle in pairs(getElementsByType(&amp;quot;vehicle&amp;quot;)) do --LOOP through all Vehicles&lt;br /&gt;
		setElementCollidableWith(vehicle, v, false) -- Set the Collison off with the other vehicles.&lt;br /&gt;
	end&lt;br /&gt;
	outputChatBox(&amp;quot;You are now a Ghost :P&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;ghostmode&amp;quot;, ghostmode_on) -- Add the /ghostmode Command.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client element functions}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiStaticImageLoadImage&amp;diff=63630</id>
		<title>GuiStaticImageLoadImage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiStaticImageLoadImage&amp;diff=63630"/>
		<updated>2019-08-07T12:03:50Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Method + Variable Information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to change the image in GUI static image element to another one. '''Tip''': If you set other images as children you will have to use [[setElementCallPropagationEnabled]] to only affect the parent image.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiStaticImageLoadImage ( element theElement, string filename )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Element/GUI/Static_image|GuiStaticImage]]:loadImage|image}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The static image element to be changed.&lt;br /&gt;
*'''filename:''' A string specifying the [[filepath]] of the image file being loaded in current resource. &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the the image in the static image element was successfully changed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a static image (&amp;quot;myimage.png&amp;quot;) and replaces it with other image (&amp;quot;otherimage.png&amp;quot;) 10 seconds after creation.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local myImage = guiCreateStaticImage( 0.45, 0.48, 0.2, 0.5, &amp;quot;myimage.png&amp;quot;, true )&lt;br /&gt;
setTimer( guiStaticImageLoadImage, 10000, 1, myImage, &amp;quot;otherimage.png&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiCreateStaticImage&amp;diff=63629</id>
		<title>GuiCreateStaticImage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiCreateStaticImage&amp;diff=63629"/>
		<updated>2019-08-07T11:57:39Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Method Information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function creates a static image using a .png image in the resource.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element guiCreateStaticImage ( float x, float y, float width, float height, string path, bool relative, [element parent = nil] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Element/GUI/Static_image|GuiStaticImage]]}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
[[Image:gui-staticimage.png|frame|Example GUI static image.]]&lt;br /&gt;
*'''x:''' A float of the 2D x position of the image on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''y:''' A float of the 2D y position of the image on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''width:''' A float of the width of the image. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''height:''' A float of the height of the image. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''path:''' The [[filepath]] of the image file that is being loaded. &lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative. If this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing measures relative to the parent.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''parent:''' This is the parent that the image is attached to. If the ''relative'' argument is true, sizes and positioning will be made relative to this parent. If the ''relative'' argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns [[element]] if image was created successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example will display an image (imagename.png) on the client's (player's) screen.&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client-side script (example.lua)&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function showClientImage()&lt;br /&gt;
   guiCreateStaticImage( 20, 200, 100, 100, &amp;quot;imagename.png&amp;quot;, false )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement( getThisResource() ), showClientImage )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;meta.xml&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
In this example [[Meta.xml]] is used to tell the server which files it will be using.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;meta&amp;gt;&lt;br /&gt;
  &amp;lt;info author=&amp;quot;Yourname&amp;quot; version=&amp;quot;1.0&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;script src=&amp;quot;example.lua&amp;quot; type=&amp;quot;client&amp;quot; /&amp;gt;&lt;br /&gt;
  &amp;lt;file src=&amp;quot;imagename.png&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/meta&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiDeleteTab&amp;diff=63628</id>
		<title>GuiDeleteTab</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiDeleteTab&amp;diff=63628"/>
		<updated>2019-08-07T11:51:33Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Method Information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function deletes a tab from a tab panel.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiDeleteTab ( element tabToDelete, element tabPanel )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Element/GUI/Tab|GuiTab]]:delete}} &lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''tabToDelete:''' This is an element representing the tab that you want to delete.&lt;br /&gt;
*'''tabPanel:''' This is the [[guiCreateTabPanel|tab panel]] parent that the tab is attached to.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' the tab was successfully deleted, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example removes a tab panel if a user LeftCtrl+Clicks a tab panel.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function deleteTabOnClick ()&lt;br /&gt;
	if ( getKeyState ( &amp;quot;lctrl&amp;quot; ) == true ) and ( getElementType( source ) == &amp;quot;gui-tab&amp;quot; ) then    -- if the user is holding down left control&lt;br /&gt;
		guiDeleteTab ( source, getElementParent(source) )                -- delete the tab. No need to check if it was actually a tab that was clicked, as this function doesn't work on other controls anyway&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, getRootElement(), deleteTabOnClick  )    -- add an event handler for clicks&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiLabelSetVerticalAlign&amp;diff=63627</id>
		<title>GuiLabelSetVerticalAlign</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiLabelSetVerticalAlign&amp;diff=63627"/>
		<updated>2019-08-07T11:48:29Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Method + Variable Information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the vertical alignment of a text label.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiLabelSetVerticalAlign ( element theLabel, string align )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Element/GUI/Text label|GuiLabel]]:setVerticalAlign|verticalAlign}} &lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theLabel:''' The text label to set the vertical alignment on.&lt;br /&gt;
*'''align:''' The alignment type. Valid type strings are:&lt;br /&gt;
**&amp;quot;top&amp;quot;&lt;br /&gt;
**&amp;quot;center&amp;quot;&lt;br /&gt;
**&amp;quot;bottom&amp;quot;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' on success, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local label = guiCreateLabel(300,200,100,500,&amp;quot;Text&amp;quot;,false)&lt;br /&gt;
guiLabelSetVerticalAlign(label,&amp;quot;bottom&amp;quot;)&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiLabelSetHorizontalAlign&amp;diff=63626</id>
		<title>GuiLabelSetHorizontalAlign</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiLabelSetHorizontalAlign&amp;diff=63626"/>
		<updated>2019-08-07T11:47:25Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Method + Variable Information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function sets the horizontal alignment of a text label.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiLabelSetHorizontalAlign ( element theLabel, string align, [ bool wordwrap = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Element/GUI/Text label|GuiLabel]]:setHorizontalAlign|horizontalAlign}} &lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theLabel:''' The text label to set the horizontal alignment on.&lt;br /&gt;
*'''align:''' The alignment type. Valid type strings are:&lt;br /&gt;
**&amp;quot;left&amp;quot;&lt;br /&gt;
**&amp;quot;center&amp;quot;&lt;br /&gt;
**&amp;quot;right&amp;quot;&lt;br /&gt;
*'''wordwrap:''' Whether or not to enable wordwrap for the gui-label.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' on success, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local label = guiCreateLabel(300,200,500,50,&amp;quot;Text&amp;quot;,false)&lt;br /&gt;
guiLabelSetHorizontalAlign(label,&amp;quot;center&amp;quot;)&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiLabelGetTextExtent&amp;diff=63625</id>
		<title>GuiLabelGetTextExtent</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiLabelGetTextExtent&amp;diff=63625"/>
		<updated>2019-08-07T11:45:41Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Method + Variable Information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns the extent, or width, of the current text inside a GUI text label.&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 guiLabelGetTextExtent ( element theLabel )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Element/GUI/Text label|GuiLabel]]:getTextExtent|textExtent}} &lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theLabel:''' The text label to get the text extent from.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the absolute width of the current text inside the text label if the function is successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a window, a text label, gets the text extent and font height, and sets the text label size according to these values.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- create the window (the container for our label)&lt;br /&gt;
local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, &amp;quot;Information&amp;quot;, true )&lt;br /&gt;
&lt;br /&gt;
-- create the label&lt;br /&gt;
local myLabel = guiCreateLabel ( 10, 10, 0, 0, &amp;quot;This is my text container&amp;quot;, false, myWindow )&lt;br /&gt;
&lt;br /&gt;
-- get the (absolute) text extent and font height, and use these to size the label&lt;br /&gt;
guiSetSize ( myLabel, guiLabelGetTextExtent ( myLabel ), guiLabelGetFontHeight ( myLabel ), false )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiLabelGetFontHeight&amp;diff=63624</id>
		<title>GuiLabelGetFontHeight</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiLabelGetFontHeight&amp;diff=63624"/>
		<updated>2019-08-07T11:44:52Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Method + Variable Information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns the height of the font currently used in a GUI text label.&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 guiLabelGetFontHeight ( element theLabel )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Element/GUI/Text label|GuiLabel]]:getFontHeight|fontHeight}} &lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theLabel:''' The text label to get the font height from.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the absolute height of the font currently used in the text label if the function is successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a window, a text label, gets the text extent and font height, and sets the text label size according to these values.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- create the window (the container for our label)&lt;br /&gt;
local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, &amp;quot;Information&amp;quot;, true )&lt;br /&gt;
&lt;br /&gt;
-- create the label&lt;br /&gt;
local myLabel = guiCreateLabel ( 10, 10, 0, 0, &amp;quot;This is my text container&amp;quot;, false, myWindow )&lt;br /&gt;
&lt;br /&gt;
-- get the (absolute) text extent and font height, and use these to size the label&lt;br /&gt;
guiSetSize ( myLabel, guiLabelGetTextExtent ( myLabel ), guiLabelGetFontHeight ( myLabel ), false )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiLabelSetColor&amp;diff=63623</id>
		<title>GuiLabelSetColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiLabelSetColor&amp;diff=63623"/>
		<updated>2019-08-07T11:41:19Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Method + Counterpart Information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&amp;lt;!-- Describe in plain english what this function does. Don't go into details, just give an overview --&amp;gt;&lt;br /&gt;
This function allows you to set the color of a GUI label.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;!-- NOTE: don't use 'special' names for variable names, e.g. you shouldn't be writing things like 'player player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlighting being odd --&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiLabelSetColor ( element theElement, int red, int green, int blue )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Element/GUI/Text label|GuiLabel]]:setColor||guiLabelGetColor}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''theElement:''' The label to be changed.&lt;br /&gt;
*'''red:''' An integer specifying the amount of red (0 to 255).&lt;br /&gt;
*'''green:''' An integer specifying the amount of green (0 to 255).&lt;br /&gt;
*'''blue:''' An integer specifying the amount of blue (0 to 255).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
&amp;lt;!-- Make this descriptive. Explain what cases will return false. If you're unsure, add a tag to it so we can check --&amp;gt;&lt;br /&gt;
Returns ''true'' if the the color of the gui label was successfully changed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a label with text &amp;quot;Hello World!&amp;quot; and sets it to a random color.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local myLabel = guiCreateLabel ( 0.45, 0.48, 0.2, 0.5, &amp;quot;Hello world&amp;quot;, true )&lt;br /&gt;
guiLabelSetColor ( myLabel, math.random(0, 255), math.random(0, 255), math.random(0, 255) )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiLabelGetColor&amp;diff=63622</id>
		<title>GuiLabelGetColor</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiLabelGetColor&amp;diff=63622"/>
		<updated>2019-08-07T11:40:07Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Method + Counterpart Information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0132|1.3.1|4670|&lt;br /&gt;
This function gets the color of a label.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int int int guiLabelGetColor ( gui-element theLabel )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Element/GUI/Text label|GuiLabel]]:getColor||guiLabelSetColor}} &lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theLabel:''' The label to get color.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns three ''int'' values, representing the amount of red, green, blue if successful. ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local pLabel = guiCreateLabel( 0.5, 0.5, 0.5, 0.5, 'Text', true )&lt;br /&gt;
guiLabelSetColor( pLabel, math.random( 0, 255 ), math.random( 0, 255 ), math.random( 0, 255 ) )&lt;br /&gt;
&lt;br /&gt;
addCommandHandler( 'get_color_label', &lt;br /&gt;
    function()&lt;br /&gt;
        local iR, iG, iB = guiLabelGetColor( pLabel )&lt;br /&gt;
        outputChatBox( ( 'Label color is r = %d, g = %d, b = %d' ):format( iR, iG, iB ) )&lt;br /&gt;
    end&lt;br /&gt;
)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiWindowSetSizable&amp;diff=63621</id>
		<title>GuiWindowSetSizable</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiWindowSetSizable&amp;diff=63621"/>
		<updated>2019-08-07T11:35:01Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Counterpart Information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function enables or disables user resizing of a GUI window.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiWindowSetSizable ( element theElement, bool status )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Element/GUI/Window|GuiWindow]]:setSizable|sizable|guiWindowIsSizable}} &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The window to be changed.&lt;br /&gt;
*'''status:''' A boolean value indicating whether user resizing is to be enabled or disabled.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the function is successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a gui window and sets it to be not sizable&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function initialize ()&lt;br /&gt;
	-- Create a gui window&lt;br /&gt;
	local window = guiCreateWindow ( 0.50, 0.50, 0.25, 0.25, &amp;quot;Test&amp;quot;, true )&lt;br /&gt;
	-- set it to be not sizable&lt;br /&gt;
	guiWindowSetSizable ( window, false )&lt;br /&gt;
	-- Show cursor to check if our changes work fine&lt;br /&gt;
	showCursor ( true )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot, initialize )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiWindowIsSizable&amp;diff=63620</id>
		<title>GuiWindowIsSizable</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiWindowIsSizable&amp;diff=63620"/>
		<updated>2019-08-07T11:34:29Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Variable + Counterpart Information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|3.0156|1.5.5|13823|This function checks if a GUI window is sizable.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiWindowIsSizable ( gui-window guiWindow )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|||sizable|guiWindowSetSizable}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''guiWindow:''' the window to check the sizable flag of&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the window is sizable, ''false'' if not, ''nil'' if an invalid window was provided.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot,&lt;br /&gt;
    function( )&lt;br /&gt;
        local window = guiCreateWindow( 0.5, 0.5, 0.22, 0.22, &amp;quot;isSizable window&amp;quot;, true )&lt;br /&gt;
        guiWindowSetSizable( window, false ) -- make it unsizable&lt;br /&gt;
        addCommandHandler( &amp;quot;isSizable&amp;quot;,&lt;br /&gt;
            function( )&lt;br /&gt;
                local sizable = guiWindowIsSizable( window ) -- check the window sizable flag&lt;br /&gt;
                outputChatBox( &amp;quot;Window is &amp;quot; .. ( sizable and &amp;quot;sizable&amp;quot; or &amp;quot;unsizable&amp;quot; ) ) -- show info about the window&lt;br /&gt;
            end&lt;br /&gt;
        )&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiWindowSetMovable&amp;diff=63619</id>
		<title>GuiWindowSetMovable</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiWindowSetMovable&amp;diff=63619"/>
		<updated>2019-08-07T11:31:42Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Counterpart Information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to specify whether or not a user can move a GUI window.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiWindowSetMovable ( element theElement, bool status )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/GUI/Window|GuiWindow]]:setMovable|movable|guiWindowIsMovable}} &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The window to be changed.&lt;br /&gt;
*'''status:''' A boolean value indicating whether the window is movable or not.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the function is successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a gui window and sets it to be not movable&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function initialize ()&lt;br /&gt;
	-- Create a gui window&lt;br /&gt;
	local window = guiCreateWindow ( 0.50, 0.50, 0.25, 0.25, &amp;quot;Test&amp;quot;, true )&lt;br /&gt;
	-- set it to be not movable&lt;br /&gt;
	guiWindowSetMovable ( window, false )&lt;br /&gt;
	-- Show cursor to check if our changes work fine&lt;br /&gt;
	showCursor ( true )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot, initialize )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiWindowIsMovable&amp;diff=63615</id>
		<title>GuiWindowIsMovable</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiWindowIsMovable&amp;diff=63615"/>
		<updated>2019-08-06T18:21:59Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Variable + Counterpart Information&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|3.0156|1.5.5|13823|This function checks if a GUI window is movable.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiWindowIsMovable ( gui-window guiWindow )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|||movable|guiWindowSetMovable}} &lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''guiWindow:''' the window to check the movable flag of&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the window is movable, ''false'' if not, ''nil'' if an invalid window was provided.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot,&lt;br /&gt;
    function( )&lt;br /&gt;
        local window = guiCreateWindow( 0.5, 0.5, 0.22, 0.22, &amp;quot;isMovable window&amp;quot;, true )&lt;br /&gt;
        guiWindowSetMovable( window, false ) -- make it unmovable&lt;br /&gt;
        addCommandHandler( &amp;quot;isMovable&amp;quot;,&lt;br /&gt;
            function( )&lt;br /&gt;
                local movable = guiWindowIsMovable( window ) -- check the window movable flag&lt;br /&gt;
                outputChatBox( &amp;quot;Window is &amp;quot; .. ( movable and &amp;quot;movable&amp;quot; or &amp;quot;unmovable&amp;quot; ) ) -- show info about the window&lt;br /&gt;
            end&lt;br /&gt;
        )&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiWindowSetMovable&amp;diff=63614</id>
		<title>GuiWindowSetMovable</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiWindowSetMovable&amp;diff=63614"/>
		<updated>2019-08-06T18:16:24Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Variable declaration.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to specify whether or not a user can move a GUI window.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiWindowSetMovable ( element theElement, bool status )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/GUI/Window|GuiWindow]]:setMovable|movable}} &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The window to be changed.&lt;br /&gt;
*'''status:''' A boolean value indicating whether the window is movable or not.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the function is successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a gui window and sets it to be not movable&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function initialize ()&lt;br /&gt;
	-- Create a gui window&lt;br /&gt;
	local window = guiCreateWindow ( 0.50, 0.50, 0.25, 0.25, &amp;quot;Test&amp;quot;, true )&lt;br /&gt;
	-- set it to be not movable&lt;br /&gt;
	guiWindowSetMovable ( window, false )&lt;br /&gt;
	-- Show cursor to check if our changes work fine&lt;br /&gt;
	showCursor ( true )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot, initialize )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiWindowSetSizable&amp;diff=63613</id>
		<title>GuiWindowSetSizable</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiWindowSetSizable&amp;diff=63613"/>
		<updated>2019-08-06T18:15:40Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Variable declaration.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function enables or disables user resizing of a GUI window.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiWindowSetSizable ( element theElement, bool status )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Element/GUI/Window|GuiWindow]]:setSizable|sizable}} &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The window to be changed.&lt;br /&gt;
*'''status:''' A boolean value indicating whether user resizing is to be enabled or disabled.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the function is successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a gui window and sets it to be not sizable&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function initialize ()&lt;br /&gt;
	-- Create a gui window&lt;br /&gt;
	local window = guiCreateWindow ( 0.50, 0.50, 0.25, 0.25, &amp;quot;Test&amp;quot;, true )&lt;br /&gt;
	-- set it to be not sizable&lt;br /&gt;
	guiWindowSetSizable ( window, false )&lt;br /&gt;
	-- Show cursor to check if our changes work fine&lt;br /&gt;
	showCursor ( true )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot, initialize )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiWindowSetSizable&amp;diff=63612</id>
		<title>GuiWindowSetSizable</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiWindowSetSizable&amp;diff=63612"/>
		<updated>2019-08-06T18:12:39Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Method declaration&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function enables or disables user resizing of a GUI window.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiWindowSetSizable ( element theElement, bool status )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Element/GUI/Window|GuiWindow]]:setSizable}} &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The window to be changed.&lt;br /&gt;
*'''status:''' A boolean value indicating whether user resizing is to be enabled or disabled.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the function is successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a gui window and sets it to be not sizable&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function initialize ()&lt;br /&gt;
	-- Create a gui window&lt;br /&gt;
	local window = guiCreateWindow ( 0.50, 0.50, 0.25, 0.25, &amp;quot;Test&amp;quot;, true )&lt;br /&gt;
	-- set it to be not sizable&lt;br /&gt;
	guiWindowSetSizable ( window, false )&lt;br /&gt;
	-- Show cursor to check if our changes work fine&lt;br /&gt;
	showCursor ( true )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot, initialize )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiWindowSetMovable&amp;diff=63611</id>
		<title>GuiWindowSetMovable</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiWindowSetMovable&amp;diff=63611"/>
		<updated>2019-08-06T18:08:09Z</updated>

		<summary type="html">&lt;p&gt;Xerox8521: Added OOP Method declaration&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to specify whether or not a user can move a GUI window.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool guiWindowSetMovable ( element theElement, bool status )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/GUI/Window|GuiWindow]]:setMovable}} &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The window to be changed.&lt;br /&gt;
*'''status:''' A boolean value indicating whether the window is movable or not.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the function is successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a gui window and sets it to be not movable&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function initialize ()&lt;br /&gt;
	-- Create a gui window&lt;br /&gt;
	local window = guiCreateWindow ( 0.50, 0.50, 0.25, 0.25, &amp;quot;Test&amp;quot;, true )&lt;br /&gt;
	-- set it to be not movable&lt;br /&gt;
	guiWindowSetMovable ( window, false )&lt;br /&gt;
	-- Show cursor to check if our changes work fine&lt;br /&gt;
	showCursor ( true )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot, initialize )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
{{GUI_events}}&lt;/div&gt;</summary>
		<author><name>Xerox8521</name></author>
	</entry>
</feed>