Search results

Jump to navigation Jump to search
  • ...o '''nil''' after destroying. Any methods working on destroyed object, but it will sends error in debug, because objects is doesn't exists. local Event = Window:addEvent("onClientGUIClick", function()
    1 KB (129 words) - 15:43, 5 September 2018
  • This function sets for Custom Label hoverable - when mouse enter label, it changes color to default color of established scheme. LabelHoverable:addEvent("onClientGUIClick", function()
    1 KB (175 words) - 11:15, 27 July 2018
  • *'''RecommendWidth''' - Recommend width of Dialog Window. By default it calculates by text, and gets maximum value of this and calculated. ButtonWindow:addEvent("onClientGUIClick", function()
    2 KB (194 words) - 04:10, 22 July 2018
  • *'''button:''' the name of the button which will be clicked, it can be ''left'', ''right'', ''middle''. ...ouse button, will be ''down'' if the mouse button was pushed, or ''up'' if it was released. '''Please note currently only the ''up'' state is supported.'
    2 KB (337 words) - 16:40, 19 October 2022
  • 当玩家点击GUI上任何一部分,"[[onClientGUIClick]]" 事件会因为你点击了GUI组建而被触发。这允许我们更简 -- 附加 onClientGUIClick 到 btnLogin 上然后设置触发函数为 'clientSubmitLogin'
    16 KB (646 words) - 13:09, 7 February 2021
  • This example creating window with some widgets, and set it's color scheme to default light purple, and using ''proceedColor'': Button:addEvent("onClientGUIClick", function()
    1 KB (138 words) - 16:20, 28 July 2018
  • Returns an [[element]] of the created [[Element/GUI/Button|button]] if it was successfully created, false otherwise. ...es an edit box alongside an "Output!" button. When the button is clicked, it will output the message in the edit box into the Chat Box.
    3 KB (398 words) - 08:09, 30 October 2023
  • ...l text = table.concat({...}, " ") -- if the text has spaces this will turn it into a string ...local success = setClipboard( text ) -- set the clipboard and find out if it worked
    2 KB (209 words) - 10:34, 2 July 2021
  • Returns ''true'' if the checkbox is selected, ''false'' if it is not. addEventHandler("onClientGUIClick", root, checkboxBleepWhenClicked, false)
    1 KB (126 words) - 20:34, 7 November 2018
  • ...n text length, alongside an "Output!" button. When the button is clicked, it will output the message in the edit box into the chatbox. -- create an edit box and define it as "editBox".
    1 KB (194 words) - 21:53, 12 December 2020
  • ...mentParent(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 addEventHandler ( "onClientGUIClick", getRootElement(), deleteTabOnClick ) -- add an event handler for clic
    1 KB (158 words) - 11:51, 7 August 2019
  • ...need to be function, what returns with [[CustomWidget:addEvent]], because it needs to be modified, if you need to remove event handler. Button:addEvent("onClientGUIClick", function()
    1 KB (145 words) - 15:37, 5 September 2018
  • This creates a player list and then clears it when a button is clicked: addEventHandler("onClientGUIClick", clearButton, function()
    1 KB (149 words) - 17:47, 22 December 2022
  • This example creates a player list on the right of the screen and fills it with players online and sets the grid list item color according to their na When the player clicks on a grid list item, it'll output the color of it.
    2 KB (275 words) - 21:13, 7 November 2018
  • This code creates a grid list and fills it with the names of the connected players. When the user selects an item, its if ( column ) then -- If the column has been created, fill it with players
    2 KB (275 words) - 16:50, 11 June 2020
  • ...creates an edit box and an OK button. The user types in his password, and it checks if the password was correct -- create an edit box and define it as "editBox"
    2 KB (280 words) - 14:20, 27 April 2020
  • Under /client/ directory, create a text file and name it "gui.lua". ...clude the new gui.lua file in the meta.xml of the main resource, and label it as a client script:
    12 KB (1,771 words) - 22:21, 5 November 2018
  • ...n. Returns false if the button is not visible or the mouse is not over it. It also returns false if the ''guiElement'' is not a gui-window. This example makes the button to close the GUI window. (Which it was made for)
    3 KB (303 words) - 05:42, 3 March 2023
  • *'''button:''' the name of the button which will be clicked , it can be ''left'', ''right'', ''middle'' ...ly both ''up'' and ''down'' state are supported, which is different from ''onClientGUIClick''.''' For only ''up'' or ''down'', see [[onDgsMouseClickUp]]/[[onDgsMouseCl
    3 KB (392 words) - 14:16, 16 February 2021
  • ...er), '#%x%x%x%x%x%x', '' ) or getPlayerName(player)), false, false) -- Set it's text to the player's name excluding colorcodes ...guiGridListSetItemData ( grid, row, column, getPlayerName(player)) -- Set it's data to the player's name with colorcodes
    3 KB (394 words) - 21:18, 7 November 2018
  • ...ello" and "World!" and chooses randomly which of these two grid list items it will retrieve. ...le 2''': This example creates a player list on resource start, clicking on it will output the selected player name to the chatbox.
    3 KB (325 words) - 18:47, 28 October 2021
  • ...his mouse. This is linked to the GTA world, as oppose to GUI for which [[onClientGUIClick]] is to be used. This event allows detection of click positions of the 3D ...ity]] elements that were clicked. If the player clicked on no MTA element, it's set to false.
    3 KB (393 words) - 13:54, 5 June 2021
  • Under /client/ directory, create a text file and name it "gui.lua". ...clude the new gui.lua file in the meta.xml of the main resource, and label it as a client script:
    16 KB (2,477 words) - 13:47, 8 November 2018
  • ...created by GUI Editor, but it will cause a lot of errors/bugs if you make it convert complicated scripts, because of compatibility) addEventHandler ( "onClientGUIClick", buttonElement, function()
    3 KB (386 words) - 11:12, 8 May 2022
  • Returns a gui-edit element of the created edit box if it was successfully created, false otherwise. ...es an edit box alongside an "Output!" button. When the button is clicked, it will output the message in the edit box into the Chat Box.
    3 KB (448 words) - 08:09, 30 October 2023
  • ...] line in the "joinHandler" function in your code, as we will be replacing it with a GUI alternative in this tutorial)''. We'll also take a look at clien All the GUI must be made client-side. It is also a good practice to keep all the client scripts in a separate folder
    16 KB (2,481 words) - 12:19, 17 September 2023
  • ...ents triggered on that element, it's parents (and their parents, etc.) and it's children (and their children). As such, an event handler attached to the ...element that the handler is being triggered on (i.e. the one you attached it to with addEventHandler).
    5 KB (918 words) - 01:27, 19 February 2019
  • Note that for some reason the column ID is 1 lower than it should be, for example 0 is returned but if you try and get the text for co addEventHandler("onClientGUIClick", buttonSelectedPlayer, seeSelected, false)
    2 KB (272 words) - 21:16, 7 November 2018
  • *'''key:''' The browser property key. It can be: addEventHandler( "onClientGUIClick", resourceRoot, function ( )
    2 KB (331 words) - 17:32, 8 June 2020
  • -- this turns on wordwrap so if your text goes over the edge of the label, it will wrap around and start a new line automatically -- this means it will only trigger when its own resource is started
    13 KB (1,992 words) - 08:28, 12 November 2018
  • ...hand, however, your choice of type depends on the situation you are using it for. ...mean that all the components are attached to the window and will move with it, but also that any changes done to the parent window will be applied down t
    16 KB (2,457 words) - 12:11, 16 January 2022
  • ...mean that all the components are attached to the window and will move with it, but also that any changes done to the parent window will be applied down t ...indow function is now complete, but it won't do anything until we call it. It is recommended to create all GUI when the client resource starts, hide them
    15 KB (2,448 words) - 12:30, 30 June 2013
  • ...nk. This must be an youtube embed link. You can use the following codes in it: ...el=0''' Disable related videos from other channels after the reproduction. It will show only videos from the embed video's channel.
    5 KB (710 words) - 05:45, 3 March 2023
  • ...his mouse. This is linked to the GTA world, as oppose to GUI for which [[onClientGUIClick]] is to be used. This event allows detection of click positions of the 3D ...ity]] elements that were clicked. If the player clicked on no MTA element, it's set to false.
    5 KB (589 words) - 10:10, 13 May 2017
  • -- if its a digit or * or #, then append it to the end of the display ...ur text) to change the text on the display, or updateDisplay(nil) to clear it.
    16 KB (2,326 words) - 12:03, 26 November 2018
  • It can also be used to interpolate 2D vectors or scalars by only setting some ...the beginning of the interpolation, 1 at the end). If it is higher than 1, it will start from the beginning.
    9 KB (1,196 words) - 00:34, 30 April 2021
  • -- this turns on wordwrap so if your text goes over the edge of the label, it will wrap around and start a new line automatically -- this means it will only trigger when its own resource is started
    17 KB (2,784 words) - 12:50, 13 May 2019
  • addEventHandler("onClientGUIClick",buttonCreate,createVehicleHandler,false) -- this will add all the vehicle options onto the gridlist, it is explained later in this tutorial
    20 KB (2,848 words) - 13:34, 25 November 2018
  • -- this means it will only trigger when its own resource is started ...der Spieler auf einen beliebigen Teil der GUI klickt, wird das Ereignis "[[onClientGUIClick]]" für die GUI-Komponente ausgelöst, auf die Sie geklickt haben. Dies erm
    17 KB (2,537 words) - 13:25, 7 July 2022
  • -- this means it will only trigger when its own resource is started Amikor a játékos a GUI felület bármely részére kattint, akkor az "[[onClientGUIClick]]" event fog meghívodni a GUI elemre, amire kattintott. Ez lehetővé tesz
    17 KB (2,820 words) - 18:33, 18 November 2018
  • Cuando un jugador clickea en alguna parte del GUI, el evento "[[onClientGUIClick]]" sera triggeado para el componente GUI que tu clickeaste. Esto nos permit -- adjunta el evento onClientGUIClick a btnLogin y activa la funcion 'clientSubmitLogin'.
    17 KB (2,599 words) - 20:41, 7 April 2014
  • ...ибо компоненту GUI, по отношении к этому компоненту срабатывает событие "[[onClientGUIClick]]". Это позволяет нам с легкостью отслежив -- прикрепляем событие onClientGUIClick к btnLogin и с него переключение на функцию 'cl
    25 KB (574 words) - 09:38, 26 April 2020
  • -- if its a digit or * or #, then append it to the end of the display
    17 KB (2,724 words) - 20:58, 15 December 2018
  • Quando o jogador clicar em qualquer parte da GUI, o evento ''onClientGUIClick'' é chamado para o componente que você clicou. Isto nos permite detectar -- Anexar o evento 'onClientGUIClick' para o botão btnLogin.
    17 KB (2,762 words) - 06:17, 21 October 2015
  • ...flag is represented. This doesn't matter as it can just attach handlers to it's dummy flag element while the other gamemode resource can handle the repre ...nts are event-specific. Each event has specific parameters, for instance [[onClientGUIClick]] has 4 parameters, which are:
    10 KB (1,523 words) - 20:33, 21 February 2021
  • addEventHandler("onClientGUIClick",buttonCreate,createVehicleHandler,false) -- this will add all the vehicle options onto the gridlist, it is explained later in this tutorial
    21 KB (3,277 words) - 12:53, 13 May 2019