Search results

Jump to navigation Jump to search
  • Returns ''true'' if input is focused on GUI, ''false'' if it's focused on the game.
    704 bytes (84 words) - 22:32, 3 May 2021
  • This example creates window with masked edit box, and prints it's states before masking and after:
    640 bytes (73 words) - 15:29, 24 July 2018
  • The GUI radio button class represents GUI radio buttons in MTA's GUI system. These can be checked or unchecked and work quite similiar as th
    591 bytes (87 words) - 18:29, 14 April 2021
  • *'''x:''' A float of the 2D x position of the GUI combobox on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the GUI combobox on a player's screen. This is affected by the ''relative'' argument.
    3 KB (423 words) - 08:09, 30 October 2023
  • ...nos sirve para dar un retraso entre una linea de codigo y la(s) siguiente(s)
    2 KB (256 words) - 19:00, 21 February 2021
  • '''Example 1:''' This example returns the player's City & Zone. -- output to local player's chatbox
    2 KB (282 words) - 21:50, 29 August 2022
  • ...function adds an object to the given ACL group. An object can be a player's account, specified as: ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    3 KB (440 words) - 15:05, 11 June 2023
  • The GUI memo class represents GUI memos in MTA's GUI system. These are big multiline text fields to what you can type text b
    473 bytes (76 words) - 18:20, 14 April 2021
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type --> ...must be an admin to use this command", source, 255, 0, 0 ) -- Tell them it's restricted
    3 KB (356 words) - 18:17, 21 February 2021
  • setPedArmor ( player, 100 ) -- Set player's armor to 100 when he types the command 'addarmor' setPedArmor ( player, 0 ) -- Set player's armor to 0 when he types the command 'removearmor'
    2 KB (273 words) - 15:44, 11 September 2024
  • if getElementModel ( theVehicle ) == 522 then -- if it's an nrg if getElementModel ( theVehicle ) == 522 then -- if it's an nrg
    2 KB (285 words) - 18:32, 21 February 2021
  • ...]] elements that were clicked. If the player clicked on no MTA element, it's set to false. The [[event system#Event source|source]] of this event is the client's [[root element]].
    2 KB (253 words) - 14:28, 20 May 2018
  • ..., such as "police", it will return the earliest occurrence of that vehicle's ID. This will allow the player to create a vehicle by name and it's model ID will be displayed in the chatbox when the vehicle is spawned.
    2 KB (318 words) - 19:53, 26 May 2017
  • *'''x:''' A float of the 2D x position of the GUI edit box on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the GUI edit box on a player's screen. This is affected by the ''relative'' argument.
    3 KB (448 words) - 08:09, 30 October 2023
  • Now let's create another text file under /mymap/ and name it "mymap.map", and enter t ...map data, the main script needs access to the map resource itself. Now let's edit the script.lua file in "myserver" resource. Enter the following code:
    9 KB (1,213 words) - 09:38, 7 March 2015
  • outputServerLog(("Amount of '%s' vehicles: %d"):format(typeName, count)) ..."..IfElse(getVehiclesCountByType(typevehicle) < 1, " Not found!", "Found '%s'")):format(typevehicle, getVehiclesCountByType(typevehicle)))
    4 KB (412 words) - 22:49, 11 September 2017
  • The GUI progress bar class represents GUI progress bars in MTA's GUI system. These are mostly used as loading bars because you can alter the
    470 bytes (71 words) - 18:23, 14 April 2021
  • This example will blow a player's vehicle when he enters the car, like a carbomb. else -- Ouch, it's blown up, let's output an error to the client.
    4 KB (345 words) - 10:21, 16 April 2017
  • This example outputs a text according on the pickup type and it's contents to the player who picks it up. message = "Unknown pickup type" -- if it's neither of the above types, set the 'message' variable accordingly
    2 KB (318 words) - 07:58, 4 November 2020
  • *'''width:''' The browser's native width. This should be greater than or equal to 1. *'''height:''' The browser's native height. This should be greater than or equal to 1.
    4 KB (520 words) - 20:41, 21 February 2021
View ( | ) (20 | 50 | 100 | 250 | 500)