Search results

Jump to navigation Jump to search

Page title matches

  • #REDIRECT [[Resource:Samurai's Library]]
    40 bytes (4 words) - 13:06, 13 July 2012
  • <pageclass class="#ff55bb" subcaption="Surge's translations"></pageclass> ==Ruha és test függvények==
    4 KB (323 words) - 17:52, 5 November 2018
  • <pageclass class="#ff55bb" subcaption="Surge's pages"></pageclass> <h3>Scriptelés</h3>
    1 KB (205 words) - 00:12, 26 November 2018

Page text matches

  • ...eedMin = %s ;speedMax = %s ;scanSizeX = %s ;scanSizeY = %s ;renderSizeX = %s \ ;renderSizeY = %s ;bShowInside = %s ;', unpack( tNew )
    1,002 bytes (126 words) - 22:51, 8 March 2012
  • The below example will notify everyone on the server when someones Satchel(s) get detonated local msg = string.format("%s's Satchels has been detonated", getPlayerName(source))
    809 bytes (102 words) - 19:18, 23 December 2023
  • This class allows you to handle matrixes without using MTA's OOP functions<br/> ...s is called POP because it doesn't use any OOP functions while keeping Lua's class structure.
    3 KB (357 words) - 12:56, 14 February 2024
  • This function is used to get the name of a specified ped's current simplest [[task]].<br> {{Note|See [[getPedTask]] to get a ped's task.}}
    918 bytes (110 words) - 13:58, 26 November 2021
  • This function retrieves the server's name. A string containing the server's name.
    562 bytes (59 words) - 21:23, 21 December 2016
  • This function retrieves the server's HTTP port. An integer corresponding to the server's HTTP port.
    581 bytes (65 words) - 09:45, 21 June 2019
  • This function determines a spawnpoint's parent element, and announces its ID: theSpawnGroup = getElementParent ( source ) -- get the spawnpoint's parent element
    2 KB (196 words) - 13:51, 6 August 2016
  • This function gets the position of a vehicle's turret, if it has one. Vehicles with turrets include firetrucks and tanks. Returns two [[float]]s for the X (horizontal) and Y (vertical) axis rotation respectively. These v
    1 KB (196 words) - 23:35, 17 December 2014
  • This event is triggered when a player's voice sound is resumed using [[setSoundPaused]]. This example outputs nick of whoever's voice is resumed.
    782 bytes (93 words) - 13:24, 7 May 2017
  • ...blocked. It will only be blocked if there is an obstacle within a player's target range. ...hree floats, ''x'',''y'',''z'', representing the position where the player's target collides, or false if it was unsuccessful.
    771 bytes (98 words) - 16:28, 13 February 2015
  • if type(pattern) ~= 'string' then check('s', pattern) end local types = {s = "string", n = "number", b = "boolean", f = "function", t = "table", u = "
    2 KB (216 words) - 23:03, 17 July 2018
  • local s = size/2 ...terialLine3D(x+(XUP*s), y+(YUP*s), z+(ZUP*s), x-(XUP*s), y-(YUP*s), z-(ZUP*s), material, size, color)
    1 KB (198 words) - 17:43, 7 August 2019
  • Returns a float indicating the element's health, or ''false'' if invalid arguments were passed. ...ealth of the player who enters the command 'showhealth', and their vehicle's health.
    1 KB (169 words) - 20:16, 11 August 2018
  • This event is triggered when a player's voice sound is paused using [[setSoundPaused]]. This example outputs nick of whoever's voice is paused.
    775 bytes (93 words) - 14:45, 8 July 2014
  • <syntaxhighlight lang="lua">string hsv2rgb ( int h, int s, int v)</syntaxhighlight> * '''s:''' Wartość 'saturation' (0-100).
    1 KB (176 words) - 19:35, 4 April 2018
  • * '''color''': An integer indicating the vehicle's [[Vehicle Colors|color(s)]] (seperated by commas). * '''upgrades''': An integer representing the vehicle's mod upgrade(s) (seperated by commas), defined in San Andreas\data\maps\veh_mods\veh_mods.
    3 KB (384 words) - 06:57, 1 January 2022
  • *'''theBlip:''' The blip who's color you wish to set. *'''red:''' The amount of red in the blip's color (0 - 255).
    2 KB (282 words) - 19:39, 20 July 2019
  • *'''width:''' The collision cuboid's width. *'''depth:''' The collision cuboid's depth.
    2 KB (175 words) - 14:09, 25 October 2020
  • This function gets a [[client]]'s name (a client can either be a [[player]] or an admin). Returns a ''string'' containing the requested client's name, or ''false'' if the client passed to the function is invalid.
    1 KB (144 words) - 16:17, 13 February 2015
  • This example stops the resource if it's archived. ...the resource if it's archived by using the object oriented method. '''(It's important to note that you need to enable OOP in meta.xml to use this)'''
    2 KB (214 words) - 03:13, 12 August 2023
  • *'''items:''' The item table in this format ( the same as cegui's ) : ["column"], -- has the first selected item's column ID
    2 KB (174 words) - 07:38, 11 July 2019
  • local playerTeam = getPlayerTeam ( source ) -- get the player's team if ( playerTeam ) then -- if he's on a team
    1 KB (157 words) - 23:58, 23 July 2018
  • This function is a full featured round function for Lua's math-library. ...ample adds a command that outputs the rounded players current position. It's useful for [[createWater]] function.
    3 KB (336 words) - 09:30, 13 October 2023
  • ...how to use resources both from a user's point of view and from a developer's. Use these pages if you want to know how to use a resource with your own on
    411 bytes (69 words) - 12:54, 30 October 2018
  • Returns a string containing the requested client's IP, or ''false'' if the client passed to the function is invalid. This example prints a player's IP to the chat.
    790 bytes (97 words) - 16:21, 13 February 2015
  • ...how to use resources both from a user's point of view and from a developer's. Use these pages if you want to know how to use a resource with your own on
    408 bytes (68 words) - 16:43, 9 November 2018
  • This function returns the specified client's [[account]] object. Returns the client's account object, or ''false'' if the client passed to the function is invali
    883 bytes (102 words) - 16:20, 13 February 2015
  • This code implements an [[event]] that is triggered when the [[player]]'s real time change.. ...ks the player's time as set on the computer and not the region time or GTA's time.}}
    2 KB (266 words) - 11:42, 29 October 2023
  • This function returns the specified player's [[account]] object. Returns the player's account object, or ''false'' if the player passed to the function is invali
    1 KB (123 words) - 13:42, 12 April 2021
  • This function retrieves the server's port. An integer corresponding to the server's port.
    620 bytes (64 words) - 14:49, 16 December 2014
  • ...eturns the current rotation (in degrees) of a player around the Z axis. It's used with on-foot players: use [[getVehicleRotation]] on the occupied [[veh Returns a ''float'' containing the player's rotation, or ''false'' if an invalid player (or one in a vehicle) was passe
    1 KB (189 words) - 16:13, 13 February 2015
  • Estes são [[id|ID]]'s de blips que podem ser usados em [[createBlip]], [[createBlipAttachedTo]], [[id|Lista de ID's de qualquer coisa do MTA]]
    382 bytes (56 words) - 17:44, 21 February 2021
  • The GUI button class represents GUI buttons in MTA's GUI system. It's only functionality is to detect whether client has clicked it.
    391 bytes (58 words) - 17:40, 14 April 2021
  • This function retrieves a resource's GUI element. The resource's GUI element is the element in the element tree which is the default parent -- Destroy all of the gui-root's children
    1 KB (183 words) - 21:12, 7 August 2018
  • Returns Edit Box's text This example creates window with Edit Box and prints it string when it's edits:
    609 bytes (68 words) - 15:25, 24 July 2018
  • This function sets the size of a blip's icon. Returns an ''true'' if the blip's size was set successfully. Returns ''false'' if the [[element]] passed was
    1 KB (180 words) - 17:20, 29 July 2019
  • ...s representing the red, green, and blue color components of the team if it's valid, ''false'' otherwise. This example defines a console command that outputs the player's team name and colors if he is on a team.
    2 KB (232 words) - 06:51, 12 July 2014
  • Returns a [[string]] of the ircbot's quit message if passed arguments were valid, ''false'' otherwise. This example creates an ircbot called ''DummyBot'', sets it's quit message and makes it connect to a server. Once it has connected, it pr
    1 KB (130 words) - 09:28, 30 July 2009
  • '''Note:''' This function will only work '''after''' you set the item's text using [[guiGridListSetItemText]]! ...) or getPlayerName(player)), false, false) -- Set it's text to the player's name excluding colorcodes
    3 KB (394 words) - 21:18, 7 November 2018
  • ...einen [[string]] aus, der die IP-Adresse des [[DE/Element/Player|Spieler]]'s enthält. Gibt einen [[string]] mit der IP-Adresse des [[DE/Element/Player|Spieler]]'s zurück.
    804 bytes (95 words) - 22:13, 30 September 2014
  • ...creates an object then get's the mass and set's its mass 300 more than it's original mass, then tell the client the old and new mass of the object.
    1 KB (133 words) - 23:08, 4 October 2014
  • This function allows retrieval of the position a player's target range begins, when he is aiming with a weapon. Returns three floats, x,y,z, representing the position where the player's target starts, or false if it was unsuccessful.
    701 bytes (89 words) - 22:18, 1 October 2016
  • ...s:''' A boolean deciding whether the ''enabled'' parameter will affect GTA's internal controls. ...s:''' A boolean deciding whether the ''enabled'' parameter will affect MTA's own controls., e.g. chatbox.
    2 KB (275 words) - 08:43, 4 November 2020
  • '''Example 1:''' This client side function outputs the player's current location to the console. -- get the local player's position
    1 KB (183 words) - 16:19, 8 April 2024
  • ...creates an object then get's the mass and set's its mass 300 more than it's original mass, then tell the client the old and new mass of the object.
    986 bytes (126 words) - 16:52, 19 March 2016
  • Returns a string containing the account's name, ''false'' if the account does not exist or an invalid argument was pa function outputOnLogin ( previous_account, current_account, auto_login ) -- s عندما الاعب يسجل الدخول
    1 KB (90 words) - 20:08, 11 April 2021
  • ***'''posX:''' Absolute X position of the renderer's bounding box. ***'''posY:''' Absolute Y position of the renderer's bounding box.
    2 KB (286 words) - 15:55, 28 April 2020
  • This function returns a [[string]] containing the current mode of the player's camera. ..."..getCameraMode( targetPlayer ), source ) -- Output the state of player's camera
    1 KB (134 words) - 16:24, 13 February 2015
  • local account = getAccount ( username, password ) --s العودة إلى الحساب if ( account ~= false ) then --s اذا هذا الحساب موجود ثم
    2 KB (123 words) - 14:09, 12 April 2021
  • ...GUI scrollbars in MTA's GUI system. These can be moved with cursor and it's position can be checked and set by script. These are built by default to ce
    549 bytes (82 words) - 18:32, 14 April 2021
  • ***''color2:'' A number ranges from 0 to 100, indicates the S (saturation) value of the color. ***''color2:'' A number ranges from 0 to 100, indicates the S (saturation) value of the color.
    2 KB (268 words) - 09:37, 26 July 2019
  • This function will show or hide a part of the player's HUD. :*'''armour:''' The display showing the player's armor
    4 KB (517 words) - 09:17, 4 November 2020
  • ...assert(type(element) == 'userdata',('Expected element at argument 1, got %s!'):format(type(element))) ('Expected element at argument 1, got %s!'):format(getElementType(element))
    1 KB (142 words) - 11:01, 28 February 2023
  • function removeHex (s) s, c = g(s, '#%x%x%x%x%x%x', '')
    3 KB (344 words) - 05:23, 11 February 2024
  • This function gets Custom Window's side panel's length.
    822 bytes (83 words) - 06:55, 14 August 2018
  • This function sets Custom Window's side panel's length.
    797 bytes (83 words) - 06:49, 14 August 2018
  • ...An float representing the absolute X position of the middle of the polygon's circumcircle. ...An float representing the absolute Y position of the middle of the polygon's circumcircle.
    2 KB (254 words) - 19:02, 1 February 2018
  • :*'''armour:''' The display showing the player's armor :*'''breath:''' The display showing the player's breath
    2 KB (281 words) - 20:46, 6 October 2013
  • ...in time at which the vehicle last exploded: at this time plus the vehicle's respawn delay, the vehicle is respawned. You can use this function to preve This example resets every vehicle's explosion time when the resource is stopped.
    1 KB (160 words) - 04:34, 16 May 2023
  • This function gets Custom Window's side panel's position on window.
    891 bytes (90 words) - 06:54, 14 August 2018
  • Returns ''true'' if the camera's interior was changed successfully, ''false'' otherwise. ...has been set to "..intID, thePlayer ) -- Tell to the player his new camera's interior
    3 KB (315 words) - 15:28, 26 August 2018
  • Returns ''true'' if the camera's interior was changed successfully, ''false'' otherwise. ...has been set to "..intID, thePlayer ) -- Tell to the player his new camera's interior
    3 KB (316 words) - 08:17, 10 October 2020
  • This function turns a vehicle's engine on or off. Note that the engine will always be turned on when someon Returns ''true'' if the vehicle's engine state was successfully changed, ''false'' otherwise.
    2 KB (219 words) - 09:01, 4 November 2020
  • This function is used to set a team's name. playerteam = getPlayerTeam ( source ) -- get the player's team
    1 KB (150 words) - 06:52, 12 July 2014
  • This function is used to retrieve a vehicle's turning velocity for each axis. Returns 3 ''floats'' that represent the vehicle's turning velocity on the x, y and z axis or ''false'' if wrong arguments wer
    1 KB (141 words) - 22:56, 29 April 2024
  • Returns Real Widget's Width and Height. Some widgets have difference between original widget size and it's real onscreen size.
    1,000 bytes (128 words) - 16:36, 29 July 2018
  • This function makes a [[ped|ped's]] footprints bloody. Returns ''true'' if changing the ped's bloody feet status worked.
    698 bytes (84 words) - 11:41, 31 August 2021
  • ...ng is the number of milliseconds that data takes to travel from the player's client to the server or vice versa. If a player is using a VPN their ping w This example checks every players ping every 5 seconds and if it's over 500 they get kicked.
    2 KB (252 words) - 13:31, 15 September 2021
  • {{New feature/item|3.0161|1.6.0|22219|Does a raycast against an element's renderable mesh model directly}} Does a raycast against an element's renderable mesh model [not the collision model!].
    2 KB (287 words) - 16:52, 31 October 2023
  • ...'false'' if the bot's name wasn't changed. You can check if the bot had it's name changed by using callback {{ml_birc|event_ircOnNickChange}}. ...cludes an IRC command '!setname <name>' which can be used to change ircbot's name.
    2 KB (211 words) - 09:34, 30 July 2009
  • * '''low1''': Lower bound of the value's current range * '''high1''': Upper bound of the value's current range
    1 KB (156 words) - 19:07, 27 September 2023
  • -- Retrieve the blip's icon into the variable 'blipIcon' -- If the blip's icon wasn't the default already
    1 KB (159 words) - 20:18, 18 July 2019
  • ...[[element]] that corresponds to the current target of the specified player's camera (i.e. what it is following). This example checks whether a player's camera's target is another player, and returns true or false accordingly.
    2 KB (182 words) - 08:08, 10 October 2020
  • -- Retrieve the blip's size into the variable 'blipSize' -- If the blip's size wasn't 2 (the default size) already
    1 KB (154 words) - 20:37, 18 July 2019
  • ...dedness of an element's model. When an element's model is double-sided, it's back facing triangles become visible.
    1 KB (173 words) - 16:30, 6 August 2016
  • local thePlayer = getAccountPlayer ( theAccount ) --s يتحقق من الاعب الذي يرتبط بالحساب if ( getElementType ( thePlayer ) == "player" ) then --s يتحقق من الاعب الذي يرتبط بهذا الحساب , اذ
    1 KB (72 words) - 13:02, 12 April 2021
  • This function retrieves a resource's root element. The resource's root element is the element in the element tree which is the parent of all Returns an ''element'' representing the resource's root, ''false'' if the specified resource doesn't exist.
    2 KB (253 words) - 18:38, 17 December 2023
  • This function changes the specified [[client]]'s name. Returns ''true'' if the client's name was changed succesfully, ''false'' if invalid arguments are specified.
    2 KB (298 words) - 12:31, 26 June 2014
  • ...eSearchLight''': the searchlight to get the position where the searchlight's light cone starts. ...ill return three ''float'', which are the three coordinates of searchlight's start position. If not, it will return ''false'' plus an error message.
    851 bytes (95 words) - 11:05, 20 March 2019
  • *'''theSearchLight''': the searchlight to get the radius of the searchlight's light cone in its beginning. ...s valid, this function will return one ''float'', which is the searchlight's start radius. If not, it will return ''false'' plus an error message.
    807 bytes (92 words) - 11:06, 20 March 2019
  • This example outputs a player's favorite animal using a console function 'favoriteAnimal' if they have one ...eAnimal = getElementData ( thePlayer, "favoriteAnimal" ) -- get the player's favorite animal
    2 KB (305 words) - 10:34, 20 May 2020
  • This example creates a team, and sets the player's team to it's partial name: -- Sets the player's team by getting the partial name of the red team.
    1 KB (155 words) - 15:31, 9 May 2018
  • This function sets Custom Window's side panel's position on window.
    875 bytes (91 words) - 06:51, 14 August 2018
  • local h, s, v s = 0
    1 KB (198 words) - 23:54, 2 January 2022
  • ...the selected items in the dgs grid list in this format ( the same as cegui's ) : ["column"], -- has the first selected item's column ID
    2 KB (246 words) - 07:37, 11 July 2019
  • Ez a function 3D-s vonalat rajzol a 3D-s világ két pontja között - egy képkocka erejéig van kirajzolva. Ezt az * '''startX:''' A 3D-s vonal kezdetének X pozíciója, amely egy koordinátát képvisel a GTA vi
    3 KB (431 words) - 13:20, 13 May 2019
  • This event is triggered ''after'' an element's [[element data|data]] entry is changed. Such changes can be made on the cli This example tells the client whenever a player's "score" element data is changed.
    1 KB (166 words) - 12:28, 8 October 2018
  • *'''theSearchLight''': the searchlight to get the radius of the searchlight's light cone in its end. ...s valid, this function will return one ''float'', which is the searchlight's end radius. If not, it will return ''false'' plus an error message.
    788 bytes (92 words) - 11:05, 20 March 2019
  • ...returns an integer that contains the total ammo in a specified [[player]]'s weapon. See [[weapon|Weapon Info]] Returns an [[int]] containing the total amount of ammo for the player's current weapon.
    2 KB (221 words) - 16:27, 13 February 2015
  • This function returns a table over all the ACL's Player. *'''thePlayer:''' The Player to get the ACL's elements from
    1 KB (171 words) - 14:49, 3 April 2024
  • account = getPlayerAccount ( player ) -- Get every player's account if ( not isGuestAccount ( account ) ) then -- For every player that's logged in....
    1 KB (95 words) - 15:07, 12 April 2021
  • This function is used to set a player's wanted level. The wanted level is indicated by the amount of stars a player This example sets a player's wanted level to six stars if they enter a certain colshape:
    1 KB (166 words) - 14:22, 27 April 2020
  • This example binds the "p" key to a function to freeze/unfreeze the player's current vehicle. -- this function freezes or unfreezes the specified player's vehicle, if he's in one
    2 KB (210 words) - 16:23, 6 August 2016
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type --> outputConsole(aclGroupGetName(aclGetGroup("Admin")).."'s are ready to watch :)",root)
    2 KB (179 words) - 06:36, 6 February 2021
  • This function determines the state of a player's cursor. Returns ''true'' if the player's cursor is visible, and ''false'' if it is not.
    4 KB (543 words) - 20:11, 24 October 2023
  • ...ion returns an integer that contains the total ammo in a specified [[ped]]'s weapon. See [[weapon|Weapon Info]] *'''weaponSlot''': an integer representing the weapon slot (set to the ped's current slot if not given)
    2 KB (214 words) - 10:18, 30 January 2022
  • This example binds the "p" key to a function to freeze/unfreeze the player's current vehicle. -- this function freezes or unfreezes the specified player's vehicle, if he's in one
    2 KB (216 words) - 11:51, 26 June 2014
  • ...draw's color, set to ''true'' to force shader's color to override dx darw's color).
    1 KB (128 words) - 04:33, 21 November 2021
  • ...parency of a gui element. This function allows retrieval of a gui element's current alpha. ...function returns a positive integer in between 0 and 1 of the gui element's current alpha, or false if it could not be retrieved.
    2 KB (360 words) - 17:15, 21 November 2018
  • *'''red:''' The amount of red in the text item's color (0 - 255). *'''green:''' The amount of green in the text item's color (0 - 255).
    1 KB (181 words) - 21:15, 29 October 2023
  • *'''X:''' A float of the 2D x position of the image on a player's screen. *'''Y:''' A float of the 2D y position of the image on a player's screen.
    1 KB (160 words) - 13:51, 20 November 2020
  • ...location. The water level is 0 in most places though it can vary (e.g. it's higher near the dam). ...n is near the water (-3 to 20 on the Z coordinate) else ''false'' if there's no water near the [[localPlayer]]/position.
    2 KB (300 words) - 10:19, 30 January 2022
  • Returns three ''float''s indicating the position of the element, ''x'', ''y'' and ''z'' respectively This example attaches a samsite on the player's vehicle.
    1 KB (157 words) - 15:52, 1 October 2021
  • This function shows Custom Window's side panel. It's just a visual object.
    891 bytes (101 words) - 15:51, 23 July 2018
  • ...t is blocked. It will only be blocked if there is an obstacle within a ped's target range. ...s three floats, ''x'',''y'',''z'', representing the position where the ped's target collides, or ''false'' if it was unsuccessful.
    1 KB (171 words) - 11:12, 21 July 2023
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type --> This example outputs to the console that "Admin's are ready to watch :)".
    2 KB (240 words) - 06:35, 6 February 2021
  • * '''colorR''': The red component of the team's color * '''colorG''': The green component of the team's color
    1 KB (182 words) - 11:17, 15 December 2021
  • ...ition and a radius and infinite height that you can use to detect a player's presence. Events will be triggered when a player enters or leaves it. *'''fX:''' The collision circle's center point's X axis position.
    2 KB (251 words) - 09:30, 6 November 2023
  • This function allows retrieval of a GUI element's current position, relative to its parent. ...the element's parent width, or the number of offset pixels from the parent's origin.
    2 KB (227 words) - 17:16, 21 November 2018
  • {{Important Note|It's enough to set the texture only once if it's a render target}} Returns ''true'' if the shader element's parameter was successfully changed, ''false'' otherwise.
    1 KB (168 words) - 14:00, 4 February 2021
  • This will tell you if a vehicle's petrol tank is explodable. outputChatBox ( "Vehicle's tank is explodable" )
    1 KB (158 words) - 07:32, 16 February 2013
  • -- Retrieve the blip's size into the variable 'blipSize' -- If the blip's size wasn't 2 (the default size) already
    1 KB (184 words) - 13:01, 21 August 2018
  • Returns ''true'' if the vehicle's lights setting was changed. Otherwise ''false''. This example will toggle the car lights on and off for a player's vehicle by using a "vehiclelights" command.
    3 KB (292 words) - 19:19, 4 June 2017
  • ...ttached to an [[element]]. This blip is displayed as an icon on the client's radar and will 'follow' the element that it is attached to around. *'''r:''' The amount of red in the blip's color (0 - 255). Only applicable to the ''Marker'' icon. Default is 255.
    3 KB (400 words) - 17:42, 21 February 2021
  • This function will show or hide a part of the player's HUD. :*'''armour:''' The display showing the player's armor
    4 KB (622 words) - 23:53, 21 February 2023
  • ...Léteznek különböző típusú fények, mint például a pontfény, reflektorfény, sötétfény. *'''dirX:''' A floating point number representing the light direction's X coordinate on the map.
    2 KB (280 words) - 18:37, 15 April 2021
  • Ez a példa megtalálja az összes létező blipet, és az összeset az alapértelmezett blip iconra állítja be. -- Retrieve the blip's icon into the variable 'blipIcon'
    1 KB (186 words) - 15:58, 24 February 2019
  • ...reates a [[blip]] [[element]], which is displayed as an icon on the client's radar. *'''r:''' The amount of red in the blip's color (0–255). Only applicable to the ''Marker'' icon. Default is 255.
    3 KB (503 words) - 15:04, 11 June 2023
  • *'''weapon:''' The weapon that's being checked if it's usable on a Jetpack.
    691 bytes (86 words) - 17:13, 25 September 2012
  • ...t's 1, the front tires have suspension and the back tires have none. If it's 0.5, front and back tires have the same suspension strength.
    1 KB (158 words) - 16:42, 19 July 2013
  • Returns a [[table]] over all channel users. Returns an empty table if there's no users on that channel or ''false'' if invalid arguments were passed. outputConsole ( "There's no ircbot called " .. name .. "!", thePlayer )
    2 KB (185 words) - 11:10, 30 July 2009
  • *'''x:''' A float of the 2D x position of the image on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the image on a player's screen. This is affected by the ''relative'' argument.
    2 KB (349 words) - 08:10, 30 October 2023
  • *'''playerNick''': The player's current nickname. *'''playerIP''': The player's current IP.
    3 KB (390 words) - 07:38, 30 October 2023
  • Returns [[float]] containing the effect's speed, ''false'' if invalid arguments were specified. ...ple adds command ''ges'' that creates crate explosion effect at the player's position and outputs its speed to the chatbox.
    946 bytes (111 words) - 13:55, 7 May 2017
  • * '''legX''': Triangle's first leg. * '''legY''': Triangle's second leg.
    780 bytes (97 words) - 08:25, 11 June 2016
  • This code adds a ''getrot'' command to get a player's current rotation. outputChatBox ( "Your vehicle's rotation is: " .. z, sourcePlayer )
    1 KB (175 words) - 16:33, 13 February 2015
  • Returns a [[string]] containing the requested players's IP, or ''false'' if the player passed to the function is invalid. This example prints a player's IP to the chat.
    789 bytes (96 words) - 22:13, 30 September 2014
  • This example creates a table and add's a command to delete the row called "row" inside the table. -- Create's the table named "table" on resource start.
    1 KB (190 words) - 16:24, 13 February 2015
  • -- Retrieve the blip's icon into the variable 'blipIcon' -- If the blip's icon wasn't the default already
    1 KB (187 words) - 19:51, 20 July 2019
  • ...a [[Element/Vehicle|train]] is a chain engine (moves the rest of the chain's carriages) or not. *'''theTrain:''' a [[Element/Vehicle|train]] to check if it's a chain engine or not.
    1 KB (163 words) - 23:13, 2 August 2016
  • This example binds the "p" key to a function to freeze/unfreeze the player's current vehicle. -- This function freezes the specified player's vehicle, if he's in one
    2 KB (249 words) - 20:21, 4 September 2016
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    984 bytes (124 words) - 10:52, 21 February 2020
  • ...90 degrees, it's actually 270 degrees and 9 o'clock is not 270 degrees, it's 90 degrees. '''To fix this use: rotZ = (360-rotZ)''' }} local rx, ry, rz = getVehicleRotation ( newHydra ) -- get the vehicle's x, y and z rotations and store them in rx, ry, and rz
    1 KB (159 words) - 08:27, 7 September 2019
  • ...d Memo Box with read only state, but Memo's read only state sets with Edit's state:
    885 bytes (107 words) - 15:21, 24 July 2018
  • ...ns a ''table'' containing all the handling data, ''false'' otherwise. Here's a list of valid table properties and what they return: ...t ) == "vehicle" and type ( property ) == "string" then -- Make sure there's a valid vehicle and a property string
    1 KB (188 words) - 15:43, 13 October 2014
  • ...objects like players and resources. They specify who has access to the ACL's in this group. -- and finally let's add the object to it's group
    1 KB (193 words) - 18:08, 21 February 2021
  • This function returns the speed of an element in m/s, km/h or mph. float/nil getElementSpeed ( element theElement [, int/string unit="m/s" ] )
    4 KB (508 words) - 10:43, 3 June 2020
  • This function will allow you to determine if a player's name tag is currently showing. ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    3 KB (416 words) - 05:17, 15 July 2014
  • ==ID's de los Climas== * '''150:''' El clima más oscuro jamás creado
    1 KB (182 words) - 11:29, 29 September 2014
  • * '''ped''': a [[player]] or [[ped]] to check if it's driving a [[vehicle]] or not. ...d a vehicle if the specified ped is driving a [[vehicle]], ''false'' if it's not or a bad argument was passed.
    2 KB (186 words) - 11:28, 15 July 2014
  • *'''x:''' A float of the 2D x position of the progress bar on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the progress bar on a player's screen. This is affected by the ''relative'' argument.
    2 KB (309 words) - 08:09, 30 October 2023
  • ...function returns an integer that contains the ammo in a specified [[ped]]'s weapon. See [[weapon|Weapon Info]] *'''weaponSlot:''' an integer representing the weapon slot (set to the ped's currently selected slot if not specified).
    1 KB (179 words) - 10:16, 30 January 2022
  • This example will print if vehicle's nitro is already recharging outputChatBox("Your vehicle's nitro is recharging.",255,255,0)
    997 bytes (108 words) - 19:07, 15 June 2021
  • This example changes the ban admin to the admin's IP (If it's a player), when someone gets banned.
    882 bytes (105 words) - 15:17, 6 August 2016
  • * '''theMarker:''' The marker element that you want to see what's inside. Returns a ''table'' containing each element that's inside the marker just like [[getElementsWithinColShape]] or ''false'' if a
    995 bytes (112 words) - 11:00, 29 October 2023
  • This function can be used to list out all created {{ml_birc|ircbot}}s. outputConsole ( "There's " .. #ircBots .. " ircbots:", thePlayer )
    988 bytes (115 words) - 10:50, 30 July 2009
  • This function sets the camera's position and direction. The first three arguments are the point at which th ...he player and sets the camera in a fixed position and rotation. The camera's focus can be brought back to the player using the [[setCameraTarget]] funct
    4 KB (543 words) - 08:29, 10 October 2020
  • This function sets the camera's position and direction. The first three arguments are the point at which th ...he player and sets the camera in a fixed position and rotation. The camera's focus can be brought back to the player using the [[setCameraTarget]] funct
    4 KB (543 words) - 10:33, 11 August 2019
  • This function returns the current channel topic and it's creator of the specified channel. The specified {{ml_birc|ircbot}} has to b Returns the currently set topic and it's creator of the specified channel. If no topic is set, it returns empty stri
    2 KB (203 words) - 18:03, 13 August 2009
  • ...ample adds a "setpos" command to console, which allows setting of a player's position. ...ds a "setpos" command to console, which allows setting of the local player's position.
    5 KB (677 words) - 21:23, 8 December 2018
  • Returns a [[string]] of the ircbot's name if passed arguments were valid, ''false'' otherwise. ...t to a server. Once it has connected, it prints out a message with the bot's name to server log.
    991 bytes (120 words) - 09:23, 30 July 2009
  • Returns a string representing the name of the player's simplest, active [[task]]. outputChatBox ( getPlayerName ( getLocalPlayer() ) .. "'s simplest task is: " .. thetask )
    974 bytes (117 words) - 10:54, 26 June 2014
  • ...ere are %d request%s running"):format(#requests, #requests == 1 and '' or 's'), player) ...ere are %d request%s running"):format(#requests, #requests == 1 and '' or 's'))
    2 KB (248 words) - 13:58, 25 October 2020
  • {{New feature/item|3|1.0||This function returns a vehicle's engine state (on or off).}} Returns '''true''' if the vehicle's engine is started, '''false''' otherwise.
    1 KB (127 words) - 18:59, 19 September 2018
  • Also returns false if '''theElement''' is a player and it's not alive. In this example the player's dimension is set to ID 1 when they enter a vehicle, and set back to dimensi
    2 KB (249 words) - 21:24, 8 December 2018
  • Also returns false if '''theElement''' is a player and it's not alive. In this example the player's dimension is set to ID 1 when they enter a vehicle, and set back to dimensi
    2 KB (249 words) - 21:24, 8 December 2018
  • ...8|20935|This function gets the state of a [[player|player's]] or [[ped|ped's]] bleeding effect.}}
    892 bytes (100 words) - 20:55, 23 September 2021
  • *'''fX:''' The position of the base of the tube's center on the X axis. *'''fY:''' The position of the base of the tube's center on the Y axis.
    2 KB (320 words) - 09:29, 6 November 2023
  • -- Retrieve the blip's icon into the variable 'blipIcon' -- If the blip's icon wasn't the default already
    1 KB (218 words) - 15:59, 24 February 2019
  • if (from_type == "nil" and not options.allowNew) and -- It's okay to merge previous nonexistent values if 'allowNew' is specified ...e.deepmerge' failed to merge incompatible types from '%s' to '%s' on key '%s'", from_type, to_type, key))
    2 KB (340 words) - 22:39, 12 August 2021
  • ...he first {{ml_birc|ircbot}} pointer of the bot with the specified name. It's useful if you don't have access to the variable where bot was originally st outputChatBox ( "There's no ircbot called " .. botName .. "!" )
    1 KB (134 words) - 08:48, 30 July 2009
  • local s = CustomButton.create(5 + 75*i, 5 + 30*j, 70, 25, "Button "..(i+1).. " "..( s:addEvent("onClientGUIClick", function()
    1,004 bytes (107 words) - 13:54, 4 August 2018
  • This function is used to show or hide the player's chat. Returns ''true'' if the player's chat was shown or hidden successfully, ''false'' otherwise.
    3 KB (380 words) - 21:37, 23 September 2021
  • *'''red:''' An integer indicating the amount of red for the vehicle's headlights *'''green:''' An integer indicating the amount of green for the vehicle's headlights
    2 KB (257 words) - 22:21, 18 December 2014
  • ...en in development for two years. Blue represents a major shift in the team's focus because they will be providing users with all the tools they need to ...bility and means that custom SCM files do not have to be moved to the game's directory when it is started.
    2 KB (351 words) - 10:40, 9 December 2021
  • * '''vehicle''': The [[vehicle]] you want to check if it's occupied or not. ...the first occupant found if the vehicle is being occupied, ''false'' if it's empty or invalid.
    2 KB (200 words) - 12:35, 19 July 2014
  • ...5.8|20935|This function allows you to set [[player|player's]] or [[ped|ped's]] bleeding effect.}}
    912 bytes (107 words) - 14:42, 1 October 2021
  • * '''fire''' Fire a player's weapon. ('''Note''': If you want to disable weapons fire, remember to also * '''aim_weapon''' Aim the player's current weapon. (if possible) (this also affects right-click + F punching)
    6 KB (790 words) - 22:27, 17 June 2023
  • ...h to full and fix its damage model. If you wish to only change the vehicle's health, without affecting its damage model, use [[setElementHealth]].
    977 bytes (133 words) - 13:34, 7 May 2018
  • ...nction returns an integer that contains the ammo in a specified [[player]]'s weapon. See [[weapon|Weapon Info]] Returns an [[int]] containing the amount of ammo in the player's currently selected clip, or 0 if the player specified is invalid.
    2 KB (215 words) - 16:24, 13 February 2015
  • outputDebugString"Yeah. It's set" To test if a flag is set or not it's easier using [[bitTest]].
    882 bytes (118 words) - 12:06, 2 June 2013
  • ..."joinTime", getTickCount() ) -- Store the current tick count in the player's data with the key 'joinTime' ...r ).." joined "..timeOnline.." seconds ago", source ) -- output the player's join time
    3 KB (359 words) - 18:35, 31 January 2022
  • ...very vehicle (including planes, boats, etc.) has a numberplate, even if it's not visible. if isPedInVehicle(localPlayer) then --let's check if they're in a vehicle
    2 KB (217 words) - 20:33, 13 October 2014
  • This example resets every vehicle's idle time when the resource is stopped. resetVehicleIdleTime ( vehicle ) -- Reset the vehicle's idle time
    1,003 bytes (125 words) - 04:33, 16 May 2023
  • ...sparency of a dgs element. This function allows retrieval of a dgs element's current alpha. ...function returns a positive integer in between 0 and 1 of the dgs element's current alpha, or false if it could not be retrieved.
    3 KB (456 words) - 21:17, 3 May 2021
  • This example binds the "p" key to a function to freeze/unfreeze the player's current vehicle. ...(thePlayer) -- This function freezes the specified player's vehicle, if he's in one
    2 KB (265 words) - 14:55, 11 June 2023
  • *'''fX:''' The collision sphere's center point's X axis position. *'''fY:''' The collision sphere's center point's Y axis position.
    3 KB (429 words) - 09:26, 6 November 2023
  • This function returns a table over all the ACL's that exist in a given ACL group. ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    2 KB (298 words) - 08:35, 5 February 2021
  • This code will output the state of resource when it's state will be changed: print ("Resource "..getResourceName (resource).." has changed it's state from "..tostring (oldState).." to "..tostring (newState))
    1 KB (125 words) - 21:24, 23 September 2021
  • This function returns a marker's type. return outputChatBox ( "It's a " .. markerType .. " marker!" )
    1 KB (128 words) - 13:43, 10 October 2023
  • ...lot''': an integer representing the [[weapon|weapon slot]] (set to the ped's current slot if not given). This example will display a player's current weapon type. In this case,a random player.
    2 KB (238 words) - 02:00, 20 February 2022
  • This event is triggered whenever the local player's radio station is changed Station ID's:
    986 bytes (118 words) - 03:21, 20 January 2015
  • ["column"], -- has the first selected item's column ID ["row"] -- has the first selected item's row ID
    2 KB (272 words) - 21:16, 7 November 2018
  • ...ther state information. The function can be also used to remove an element's syncer. Please note that using this function to change an element's syncer will only last as long as the element is within syncable range of th
    3 KB (383 words) - 23:15, 30 March 2024
  • This example makes a /debug command to check if the client's debugscript is on or off. else -- If it returns anything else (that it's not active)...
    1 KB (146 words) - 17:21, 21 November 2018
  • This function can change an [[element]]'s [[visibility]]. * [[Marker]]s
    3 KB (447 words) - 13:48, 25 December 2023
  • Returns the player's account object, or ''false'' if the player passed to the function is invali This example sets a player's money and also stores the value is his account.
    1 KB (94 words) - 13:42, 12 April 2021
  • -- Retrieve the blip's colors into the variables red, green, blue and alpha -- If the blip's icon isn't white already
    2 KB (232 words) - 20:10, 18 July 2019
  • *'''fX:''' The X position of the collision cuboid's western side. *'''fY:''' The Y position of the collision cuboid's southern side.
    3 KB (393 words) - 14:29, 31 January 2024
  • ...specified in the given ACL. The rights for something in the different ACL's in a group are OR-ed together, which means if one ACL gives access to somet ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    2 KB (337 words) - 18:28, 21 February 2021
  • *'''fX:''' The X position of the collision rectangle's west side. *'''fY:''' The Y position of the collision rectangle's south side.
    2 KB (288 words) - 09:18, 6 November 2023
  • This function checks if the specified player's radar map has been forced on or not. Returns ''true'' if the player's radar map is forced on, ''false'' otherwise.
    2 KB (239 words) - 04:27, 29 December 2014
  • * ''height'': The height of the text, it's 1 by default. * ''distance'': The distance you will be able to view the text from, it's 20 by default.
    4 KB (566 words) - 22:13, 23 May 2020
  • ...r'' of the amount the pickup is set to, ''false'' if it's invalid, 0 if it's no health or amor pickup.
    1 KB (133 words) - 09:57, 15 December 2023
  • Returns 4 [[int]]s indicating the states of the wheels (front left, rear left, front right, re This example displays the states of the vehicle's wheels and changes their states if any arguments were passed.
    3 KB (404 words) - 23:03, 17 December 2014
  • Changes a player's fighting style, most only change the 'special attack' which is done using t This example sets the player's fighting style to the desired style when he types "setstyle" followed by a
    1 KB (162 words) - 01:08, 11 September 2016
  • ...that will be presented as executer of the command to the handler function(s) of the command. ...args:''' Additional parameters that will be passed to the handler function(s) of the command that is called, separated by spaces.
    3 KB (407 words) - 14:49, 24 May 2019
  • Returns a string representing the team's name if the team object was valid, ''false'' otherwise. -- Get the player's team (source is the player who entered the command)
    1 KB (145 words) - 14:44, 13 July 2019
  • * ''height'': The height of the text, it's 1 by default. * ''distance'': The distance you will be able to view the image from, it's 20 by default.
    4 KB (593 words) - 16:18, 21 July 2023
  • { -- Using curly braces as it's a table 0, function() print("It's 0") end, -- [ compare the value, do the function ] The first argument compa
    2 KB (254 words) - 00:54, 13 May 2020
  • Modules are extensions for Multi Theft Auto's Lua core, allowing the integration and use of custom Lua functions that hav Let's start by downloading a template to create our own module.
    4 KB (625 words) - 17:06, 23 May 2023
  • This function is used to retrieve the distance between a [[element]]'s centre of mass to the base of the model. This can be used to calculate the ...reamed in, otherwise 0 is returned. If you create an element at the player's position which is going to be streamed in, call the function in the next fr
    1 KB (160 words) - 21:22, 8 December 2023
  • *'''rotX:''' The component's rotation around the x axis in degrees. *'''rotY:''' The component's rotation around the y axis in degrees.
    2 KB (306 words) - 14:04, 5 July 2017
  • This function allows a gridlist's scrollbar to be forced '''on''', or returned to default. This example creates a gridlist and checks if it's created then sets the scroll bars. (TESTED!)
    1 KB (134 words) - 21:19, 7 November 2018
  • *'''dirX:''' A floating point number representing the light direction's X coordinate on the map. *'''dirY:''' A floating point number representing the light direction's Y coordinate on the map.
    2 KB (242 words) - 18:36, 15 April 2021
  • Select a player and damage its vehicle's brakes handlingSetBrakeDeceleration(vehicle, 0.08) -- reduce brake's strength
    1 KB (141 words) - 20:26, 13 July 2023
  • ...is the component's frame name (also called 'dummy') from the vehicle model's DFF file of which you want to manipulate components)
    1 KB (152 words) - 00:57, 18 July 2019
  • ...ield's value is passed as first argument and optionally more arguments. It's also possible to enable mapping of tables that are stored in the given tabl ...rgument1, ...''': All arguments that should be passed to func everytime it's called.
    2 KB (270 words) - 08:55, 29 October 2023
  • ...x, y, z and end position x, y, z of the item. Or 3 ''nil''s and 3 ''float''s if using end position of previous item as start position of current item, '
    1 KB (168 words) - 12:11, 10 January 2023
  • if ( getElementType ( theClient ) == "player" ) then -- see if it's a player (rather than an admin for example) ...if ( not isPlayerDead ( theClient ) ) then -- if the player's health is greater than 0
    1 KB (149 words) - 16:21, 13 February 2015
  • ...created by a script, they do not represent models that are part of the GTA's default landscape. Examples of objects include building models, roads, and * '''dimension''': The object's dimension number.
    2 KB (253 words) - 16:40, 29 April 2024
  • *'''x:''' A float of the 2D x position of the detect area on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the detect area on a player's screen. This is affected by the ''relative'' argument.
    2 KB (324 words) - 09:25, 17 January 2021
  • outputChatBox ( "The flag's ID is: " .. idstring ) -- output: The flag's ID is: northflag
    1 KB (177 words) - 22:07, 10 February 2024
  • float/nil getElementSpeed ( element theElement [, int/string unit="m/s" ] ) ** '''0''' or '''m/s''': метров в секунду.
    3 KB (286 words) - 10:43, 3 June 2020
  • It's hell of a lot of work to build tons of GUIs for police manuals or other boo book_id - The book's ID.
    4 KB (579 words) - 13:47, 21 January 2013
  • *'''x:''' A float of the 2D x position of the image on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the image on a player's screen. This is affected by the ''relative'' argument.
    2 KB (362 words) - 05:23, 21 March 2020
  • ...ion x and y, end position x and y, and relative. Or 2 ''nil''s, 2 ''float''s and a ''bool'' if using end position of previous item as start position of
    1 KB (156 words) - 12:10, 10 January 2023
  • Note = The '''Variable''' It's a table and has the following using: Return two ''string''s, indicates '''horizontal''' and '''vertical''' alignment.
    1 KB (149 words) - 13:34, 5 February 2023
  • print(('tablename: %s | key: %s | Old: %s | New: %s'):format(tostring(name), tostring(key), tostring(old), tostring(new)))
    3 KB (379 words) - 05:01, 13 April 2024
  • Returns a string of the ircbot's current state. Possible values are: ...Bot'' and makes it connect to a server. During the connection progress bot's current states are printed out to the server log.
    1 KB (146 words) - 09:24, 30 July 2009
  • This example outputs the responsible element and the banned player's name when a ban takes place. ...anner = getPlayerName( responsibleElement ) or "Console" -- Get the banner's name.
    1 KB (149 words) - 17:11, 6 December 2023
  • The [[event system#Event source|source]] of this event is the client's [[root element]]. ...tever function it is attached to with every frame. Depending on the server's maximum FPS and what your computer might handle - you might end up triggeri
    1 KB (167 words) - 17:24, 30 July 2020
  • ...ultiple columns. A good example of a gridlist element can be found in MTA's settings box, under ''Controls''. *'''x:''' A float of the 2D x position of the GUI gridlist on a player's screen. This is affected by the ''relative'' argument.
    3 KB (377 words) - 08:09, 30 October 2023
  • ...admin can specify settings in the settings.xml that override the resource's defaults, but that the defaults can still be retrieved if need be. As a gen ...e any Lua data type, except for functions, most userdata (only [[resource]]s can't be stored) and threads.
    2 KB (286 words) - 18:42, 12 October 2020
  • local str = string.format("The %s with the fewest players %s %s!", multiple and "teams" or "team", multiple and "are" or "is", teamListStr)
    2 KB (285 words) - 23:39, 21 June 2014
  • This function gets the properties of a vehicle's sirens. -- Get vehicle's siren data and output it to the player in the chatbox
    3 KB (291 words) - 10:35, 6 August 2015
  • *'''media:''' The element media that you want it's file path. ...rns file path of the loaded media of media browser element, false if there's no media.
    1 KB (145 words) - 19:25, 17 August 2018
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    1 KB (173 words) - 05:56, 11 August 2019
  • ...'cloneChildren''': A boolean value representing whether or not the element's children will be cloned. ...dren' is true, the position floats will be offsets from the cloned element's position.'''
    2 KB (317 words) - 03:33, 1 January 2015
  • ..., pitch, roll = getElementBoneRotation (localPlayer, 2) -- Get the element's bone rotation ...setElementBoneRotation(localPlayer, value, 0, 0, 0) -- Update the ped's shoulders rotation
    2 KB (231 words) - 20:34, 23 September 2021
  • If this event is [[Event system#Canceling|canceled]], the game's chat system won't deliver the message. You may use [[outputChatBox]] to sen outputChatBox("Bob is not accepting PM's at this time.",source,255,0,0) -- And output it was cancelled.
    1 KB (160 words) - 09:01, 4 November 2020
  • Returns a string containing the requested player's name, or ''false'' if the player passed to the function is invalid. -- output local player's name to the chatbox
    2 KB (184 words) - 22:01, 15 January 2024
  • This function gets a radio button's selection state. ...reates a radio button then checks if one is selected and if it is, then it's output the title and sets the next radio button selected. (TESTED!)
    1 KB (129 words) - 19:30, 6 September 2021
  • ...dow size. If ''false'', then the size and co-ordinates are based on client's resolution. Returns two ''float''s, which indicate the length and height of the close button
    1 KB (130 words) - 04:13, 29 July 2019
  • *'''Title:x''': An element titlebar x position.(It's for only dxWindows) *'''Title:y''': An element titlebar y position.(It's for only dxWindows)
    1 KB (147 words) - 20:25, 25 May 2012
  • ...GTA-világban a járműveket jelenti. A járműveket a játákosok irányíhatják és birtokolhatják. ...s turret's rotation around the Z axis, in radians. Relative to the vehicle's rotation, i.e. turretX=0 will always make the turret point in the same dire
    3 KB (496 words) - 20:31, 14 April 2021
  • print("Indeed, it's not added") print("Seems like it's added")
    1 KB (147 words) - 09:33, 16 February 2023
  • ...''' A float of the 2D x position of start position of the line on a player's screen. This is affected by the ''relative'' argument. ...''' A float of the 2D y position of start position of the line on a player's screen. This is affected by the ''relative'' argument.
    2 KB (263 words) - 12:03, 10 January 2023
  • The [[event system#Event source|source]] of this event is the resource's root element. This example will output the file's resource name/file name/size/state when downloading:
    1 KB (161 words) - 15:53, 27 December 2023
  • ...ample adds a "setpos" command to console, which allows setting of a player's position. ...ds a "setpos" command to console, which allows setting of the local player's position.
    5 KB (635 words) - 02:48, 9 December 2012
  • This function allows retrieval of the position a ped's target range begins, when he is aiming with a weapon. Returns three floats, x,y,z, representing the position where the ped's target starts, or ''false'' if it was unsuccessful.
    1 KB (161 words) - 11:05, 31 May 2023
  • setPlayerArmor ( player, 100 ) --Set player's armor to 100 when he types the command 'addarmor' setPlayerArmor ( player, 0 ) --Set player's armor to 0 when he types the command 'removearmor'
    1 KB (148 words) - 22:00, 5 July 2014
  • This function tells you which weapon type is in the player's current slot (clientside, you can optionally specify a slot other than the This serverside example will display a player's current weapon type. In this case, it is hard coded to use the player calle
    2 KB (297 words) - 11:25, 26 June 2014
  • ...ényesek. Az alpha dönti el az átlátszóságot, ahol a 255 az átláthatatlan és a 0 pedig teljesen átlátszó. ''false'' értéket ad vissza, ha a blip é Ez a példa megtalálja az összes létező blip-et, és mindet fehérre állítja, ha nem fehér volt alapból.
    2 KB (277 words) - 13:01, 21 August 2018
  • Note = The returned value it's a [[Vector2]]| This returns two floats representing the player's screen resolution, ''width'' and ''height''.
    1 KB (181 words) - 22:38, 3 May 2021
  • This example will toggle the car lights on and off for a player's vehicle ...theVehicle = getPlayerOccupiedVehicle ( source ) -- get the player's vehicle
    1 KB (139 words) - 16:10, 13 October 2014
  • account = getPlayerAccount ( player ) -- Get every player's account if ( not isGuestAccount ( account ) ) then -- For every player that's logged in....
    1 KB (174 words) - 15:06, 12 April 2021
  • ...on gibt die [[ID]] eines [[Element]]'s aus. Das ist die ID des [[Element]]'s, doch nicht die [[Vehicle]]-ID, [[Weapon]]-ID etc. Die Funktion gibt einen ''string'' aus, welcher die ID des [[Element]]s enthält. Sie wird einen leeren ''string'' ausgeben, wenn das Element keine
    1 KB (152 words) - 02:11, 24 August 2013
  • -- print the old and the new vehicle's dimension outputChatBox (inspect (source) .. "'s dimension changed from " .. oldDimension .. " to " .. newDimension)
    1 KB (153 words) - 14:32, 31 December 2022
  • setElementDimension ( theVehicle, 1 ) -- set his vehicle's dimension to 1 as well ...seat == 0 ) then -- if the player is in dimension 1 and was in the driver's seat
    2 KB (237 words) - 13:54, 6 August 2016
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    2 KB (181 words) - 07:10, 6 February 2021
  • *'''startRadius''': the radius of the searchlight's light cone in its beginning. ...p of Los Santos' skyscraper and turns it on/off every second by setting it's ending radius and starting radius to 0.
    1 KB (138 words) - 11:12, 20 March 2019
  • *'''endRadius''': the radius of the searchlight's light cone in its end. ...p of Los Santos' skyscraper and turns it on/off every second by setting it's ending radius and starting radius to 0.
    1 KB (138 words) - 11:12, 20 March 2019
  • This example displays the states of the vehicle's wheels and changes their states if any arguments were passed. if ( newFLeft ) then -- if there's at least one argument passed, we change the wheel states
    4 KB (458 words) - 20:54, 9 September 2019
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type --> Displays a message in the chat what is the player's debug level.
    2 KB (277 words) - 14:15, 25 October 2020
  • This will set player's debug level, equivalent to [[Debugging|debugscript <level>]]. ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    2 KB (265 words) - 14:15, 25 October 2020
  • ...pletely downloaded, so a resource cannot use this function to detect if it's own files are downloaded. A client-side resource triggers the [[onClientRes
    1 KB (162 words) - 12:02, 4 October 2020
  • ...ation: " .. location, getRootElement(), 0, 255, 255 ) -- Output the player's name and zone name
    1 KB (153 words) - 22:53, 1 January 2015
  • ...exists, ''false'' in the first variable and ''nil'' in the other two if it's invalid.
    1 KB (169 words) - 08:06, 4 November 2020
  • ..."joinTime", getTickCount() ) -- Store the current tick count in the player's data with the key 'joinTime' ...r ).." joined "..timeOnline.." seconds ago", source ) -- output the player's join time
    3 KB (373 words) - 18:31, 31 January 2022
  • ...''' A float of the 2D x position of start position of the line on a player's screen, set to nil to use the end position of previous item. This is affec ...''' A float of the 2D y position of start position of the line on a player's screen, set to nil to use the end position of previous item. This is affec
    2 KB (268 words) - 12:37, 7 February 2022
  • Binds a player's key to a handler function or command, which will be called when the key is *'''handlerFunction:''' The function that will be triggered when the player's key is pressed. This function should have the form:
    8 KB (1,156 words) - 19:46, 19 March 2024
  • This function sets the player's weapon slot. This affects the current weapon. Returns ''true'' if successful in setting the player's equipped weapon slot, ''false'' otherwise.
    2 KB (191 words) - 21:38, 20 April 2011
  • This function allows retrieval of the position where a ped's target range ends, when he is aiming with a weapon. ...s three floats, ''x'',''y'',''z'', representing the position where the ped's target ends according to his range, or ''false'' if it was unsuccessful.
    1 KB (169 words) - 18:30, 5 December 2014
  • *'''x:''' A float of the 2D x position of the radio button on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the radio button on a player's screen. This is affected by the ''relative'' argument.
    3 KB (373 words) - 08:10, 30 October 2023
  • If succesful, returns three ''float''s that represent the element's current velocity along the ''x'', ''y'', and ''z'' axis respectively. This outputChatBox ( "Someguy's current velocity: " .. mps .. " metres per second." )
    2 KB (289 words) - 17:49, 25 May 2018
  • Changes a ped's fighting style. Most styles only change the 'special attack' which is done This example sets the player's fighting style to the desired style when he types "setstyle" followed by a
    1 KB (165 words) - 13:44, 25 October 2020
  • Returns ''true'' if the radio button's selection state was successfully set, ''false'' otherwise. ...reates a radio button then checks if one is selected and if it is, then it's output the title and sets the next radio button selected. (TESTED!)
    1 KB (150 words) - 19:31, 6 September 2021
  • ...[guiScrollPaneGetVerticalScrollPosition]] to read and modify the scrollbar's scroll. ...n 0 and 1, representing sizes/positions as a fraction of the parent widget's size.
    2 KB (255 words) - 08:05, 30 October 2023
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    1 KB (178 words) - 10:43, 30 January 2022
  • Returns ''true'' if the player's chat was shown or hidden successfully, ''false'' otherwise. Returns ''true'' if the player's chat was shown or hidden successfully, ''false'' otherwise.
    2 KB (234 words) - 19:24, 5 May 2016
  • outputChatBox(("%s has banned %s"):format(getPlayerName(banner), getPlayerName(source)), root, 255, 0, 0)
    1 KB (208 words) - 15:01, 22 September 2017
  • ...vehicle's turret, if it has one. This can be used to influence the turret's rotation, so it doesn't follow the camera. Vehicles with turrets include fi
    1 KB (170 words) - 23:23, 17 December 2014
  • ...the first item). If -1 is specified, then the combo box text is set to it's ''caption''. ...etVisible(dgsWindow,true) -- we set it visible again. Strictly speaking it's not necessary, could have omitted both this and the upper dgsSetVisible, bu
    2 KB (293 words) - 11:13, 20 January 2018
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type --> Returns the player's current fighting style as an integer ID, ''false'' if it fails to retrieve
    2 KB (295 words) - 16:30, 13 February 2015
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type --> Returns a string containing the requested element's text, or false if the gui element passed to the function is invalid.
    2 KB (286 words) - 08:06, 5 August 2021
  • ==Funciones de PED's== ==Funciones de Pickup's==
    3 KB (426 words) - 00:36, 3 January 2022
  • This example sets every polygon colshape's max heigh to 50 units once resource starts. if (getColShapeType (v) == 4) then -- if it's a polygon colshape do it otherwise don't
    1 KB (167 words) - 21:34, 23 September 2021
  • ...een disabled by Rockstar Games due to floor collision issues (see TheJizzy's video "BETA Leftovers and Glitches" at 12:12 timestamp). You can remove the -- open the door when someone enters the garage's collision shape
    2 KB (284 words) - 14:08, 7 December 2021
  • ...the first item). If -1 is specified, then the combo box text is set to it's ''caption''. ...etVisible(guiWindow,true) -- we set it visible again. Strictly speaking it's not necessary, could have omitted both this and the upper guiSetVisible, bu
    2 KB (292 words) - 20:40, 7 November 2018
  • ...rker's type. The type controls how the marker is displayed in the game. It's important that you use marker types that users are used to from the single
    1 KB (178 words) - 10:11, 11 February 2015
  • ...'King of the hill'' gamemode. When a player enters or leaves the area, it's announced in the chatbox. --let's get the name of the player
    2 KB (282 words) - 14:06, 31 December 2022
  • -- check if there's account with newNick as username ...'s name was changed to "..newNick.." by a script") -- output to the server's logs
    2 KB (295 words) - 10:40, 30 January 2022
  • ...June-July. A console program created a .map file after i set up the track's properties like positions (had to find the coordinates manually), and i cou There are more ways to edit the control point's or track element's model.
    4 KB (633 words) - 17:41, 25 March 2024
  • '''Example 1:''' This example decreases the size of a team's radar area whenever a player from that team dies: ...entChild ( victimteam, 0 ) -- get the radararea belonging to the victim's team
    2 KB (278 words) - 17:38, 26 November 2014
  • This function gets a vehicle's turn velocity relative to the vehicle's center or mass. Returns 3 ''floats'' that represent the vehicle's turning velocity on the x, y and z axis relative to vehicle center of mass
    2 KB (292 words) - 05:46, 11 August 2019
  • Over the years MTA's community has come across some new terms and words. They are most often use GTANet's resident bastard operator from hell
    1 KB (203 words) - 15:49, 21 September 2014
  • Diese Funktion ermöglicht es, die Position eines [[Element]]s abzurufen. Dies kann ein belibiges [[Element]] sein: Gibt drei "''float''s" aus, welche die x, y und z Koordinaten des [[Element]]s enthalten.
    1 KB (152 words) - 02:03, 24 August 2013
  • This function changes the specified [[player]]'s name. Note that any change made to a players name with this function is not This example adds a tag before a player's nickname via a /changetag command
    3 KB (431 words) - 20:27, 6 August 2019
  • This event is triggered whenever a player's equipped weapon '''slot''' changes. This means [[giveWeapon]] and [[takeWea If this event is [[Event system#Canceling|canceled]], then the player's weapon won't be switched.
    1 KB (180 words) - 09:44, 16 November 2023
  • *'''offsetX:''' A float of the 2D x position of the element on a player's screen. This is affected by the relative argument. *'''offsetY:''' A float of the 2D x position of the element on a player's screen. This is affected by the relative argument.
    2 KB (340 words) - 23:10, 3 May 2021
  • ...ersistence is equivalent to that of using [[setElementData]] on the player's element. ...ametypes would use "money" as the account key, they'd overwrite each other's data.
    3 KB (413 words) - 10:41, 30 January 2022
  • Sets a player's money to a certain value, regardless of current player money. It should be '''Example 1:''' This example sets the player's money to the desired amount when he types "setcash" in console.
    2 KB (303 words) - 10:26, 29 June 2022
  • *'''startRadius''': the radius of the searchlight's light cone in its beginning. *'''endRadius''': the radius of the searchlight's light cone in its end.
    1 KB (198 words) - 18:44, 15 April 2021
  • *'''startRadius''': the radius of the searchlight's light cone in its beginning. *'''endRadius''': the radius of the searchlight's light cone in its end.
    1 KB (198 words) - 18:45, 15 April 2021
  • ...e markers, incluindo ''cylinder''s e ''checkpoint''s. Nos scripts, markers são frequentemente usados para marcar pontos e desencadear algum tipo de aç * '''type:''' O tipo visual do marker que será criado. Os tipos disponíveis são:
    1 KB (168 words) - 18:48, 26 February 2020
  • ...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 (301 words) - 18:17, 21 February 2021
  • ...course only those which are available clientside. It doesn't matter if it's a MTA function, a Lua standard function or a custom function. This example sets the player's minute duration.
    3 KB (334 words) - 09:37, 24 May 2012
  • This examples get's browser element from gui-browser and attach a webbrowser to a CEGUI window. --Let's create a new browser in remote mode.
    2 KB (192 words) - 15:48, 8 April 2020
  • This example gets the joined client's name and sends him a welcome message including his name. -- we store the player's name
    2 KB (294 words) - 21:55, 18 February 2022
  • *'''dimension:''' the [[dimension]] in which the map's objects will be placed. Returns the new map's root [[xmlnode]] if the map was added successfully, ''false'' otherwise.
    1 KB (192 words) - 05:04, 11 August 2019
  • This function edit's the properties of a specific [[sound]]. *'''fSampleRate:''' A float that defines the new sound's [http://en.wikipedia.org/wiki/Sampling_rate sample rate]
    1 KB (183 words) - 01:52, 20 July 2018
  • The [[event system#Event source|source]] of this event is the client's [[root element]]. ...tever function it is attached to with every frame. Depending on the server's maximum FPS and what your computer might handle - you might end up triggeri
    1 KB (197 words) - 11:06, 2 March 2014
  • ...o something besides the nickname he chose. This will not change the player's actual nickname, it only changes the visible aspect inside the world (you w ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    3 KB (444 words) - 04:53, 15 July 2014
  • ...t is required that the point is near enough to the local player so that it's within the area where collision data is loaded.}} This example starts to shake the player's camera if there is no roof over him:
    1 KB (168 words) - 15:59, 23 September 2021
  • if ( isVehicleBlown ( theTaxi ) ) then -- Check whether it's blown or not else -- Anything else (if it's not)
    1 KB (179 words) - 22:33, 18 December 2014
  • Returns ''true'' if the player's chat was cleared successfully, ''false'' otherwise. Returns ''true'' if the player's chat was cleared successfully, ''false'' otherwise.
    2 KB (196 words) - 04:42, 30 October 2021
  • *'''x:''' A float of the 2D x position of the GUI memo on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the GUI memo on a player's screen. This is affected by the ''relative'' argument.
    2 KB (310 words) - 08:09, 30 October 2023
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    2 KB (212 words) - 18:28, 21 February 2021
  • ...- 255). Az alpha dönti el az átlátszóságot, ahol a 255 az átláthatatlan és a 0 pedig teljesen átlátszó. Ez a példa megtalálja az összes létező blip-et, és mindet fehérre állítja, ha nem fehér volt alapból.
    2 KB (344 words) - 13:02, 21 August 2018
  • *'''x:''' A float of the 2D x position of the DGS browser on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the DGS browser on a player's screen. This is affected by the ''relative'' argument.
    3 KB (508 words) - 15:30, 1 July 2021
  • Die Garagen-ID's und ihre Beschreibung sind hier aufgelistet:
    284 bytes (40 words) - 17:15, 18 May 2013
  • This function gets a gridlist's column index from the column title. This function is particularly useful wh * Here's a quick example which grabs the index from the id column and triggers a cus
    2 KB (224 words) - 23:35, 24 October 2018
  • *'''x:''' A float of the 2D x position of the browser on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the browser on a player's screen. This is affected by the ''relative'' argument.
    4 KB (553 words) - 08:11, 30 October 2023
  • This function makes a vehicle's doors undamageable, so they won't fall off when they're hit. Note that the *'''state:''' A boolean denoting whether the vehicle's doors are undamageable (''true'') or damageable (''false'').
    1 KB (176 words) - 23:30, 17 December 2014
  • -- if it's in a vehicle, -- if it's not in a vehicle,
    2 KB (204 words) - 11:48, 26 June 2014
  • Die Garagen-ID's und ihre Beschreibung sind hier aufgelistet:
    298 bytes (42 words) - 14:25, 22 March 2020
  • -- Retrieve the blip's size into the variable 'blipSize' -- If the blip's size wasn't 2 (the default size) already
    1 KB (213 words) - 13:02, 21 August 2018
  • Ez a function 3D-s vonalat rajzol a 3D-s világ két pontja között - egy képkocka erejéig van kirajzolva. Ezt az A 3D-s vonalak egy adott helyen vannak rajzolva a [[Game_Processing_Order|játékf
    3 KB (441 words) - 13:21, 13 May 2019
  • ...we invert (toggle) the variable, so if it's false, it becomes true, if it's true, it becomes false.
    1 KB (179 words) - 20:44, 30 April 2017
  • ...les will be invalidated during the restart, though of course, the resource's name will not.}} -- if it's running,
    2 KB (314 words) - 04:45, 11 August 2019
  • ...or is fully spun up. Higher values than normal will not affect the vehicle's handling. Negative values are allowed and will make the rotor spin in the o This example changes the rotor speed of the vehicle the player is in, if it's a helicopter or plane.
    2 KB (196 words) - 14:50, 23 December 2023
  • *** '''checkBuildings''': allows the shoot to be blocked by GTA's internally placed buildings, i.e. the world map. *** '''checkDummies''': allows the shoot to be blocked by GTA's internal dummies. These are not used in the current MTA version so this arg
    2 KB (347 words) - 14:23, 4 July 2016
  • This function gets a setting's value, or a group of settings' values, from the [[settings system|settings *the list of the script's resource settings if an empty string is passed.
    1 KB (214 words) - 18:14, 26 August 2019
  • *'''x:''' A float of the 2D x position of the window on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the window on a player's screen. This is affected by the ''relative'' argument.
    2 KB (317 words) - 17:56, 1 July 2017
  • This function returns the position of the specified marker's target, the position it points to. This only works for checkpoint markers a Returns three ''float''s if a target is set, or ''false'' in the first variable and ''nil'' in the t
    1 KB (207 words) - 08:04, 4 November 2020
  • This function is used to forcefully show a player's radar map. Returns ''true'' if the player's radar map was forced on, ''false'' otherwise.
    2 KB (200 words) - 23:49, 27 September 2017
  • This resource is designed to allow you to create directX GUI's as an alternative to the original MTA:SA GUI functions. ...ibrary easier to use and understand, I choose to follow the usage of cegui's.
    2 KB (327 words) - 01:00, 21 November 2023
  • This example will create a blip and make your blip on top of all other blip's. ...outputChatBox("*INFO: #ffff00" .. getPlayerName(thePlayer) .. "'s blip is now on top of your blip!",v,255,0,0,true)
    1 KB (190 words) - 20:02, 20 July 2019
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type --> ...status = isElementAttached ( thePlayer ) -- call the function and store it's result in the 'status' variable
    2 KB (339 words) - 23:10, 27 September 2018
  • Returns ''true'' if the gui element's alpha was successfully changed, ''false'' otherwise. This creates a GUI window and allows a player to change it's alpha (the visibleness/transparency) value with a command.
    2 KB (195 words) - 17:19, 21 November 2018
  • outputChatBox("Looks like it's going to be a rainy day!",255,130,130,false) outputChatBox("Looks like it's going to be a rainy day!",player,255,130,130,false)
    2 KB (192 words) - 23:12, 11 January 2023
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type --> Returns a string containing the requested element's text, or false if the dgs element passed to the function is invalid.
    2 KB (337 words) - 21:25, 3 May 2021
  • Returns 3 [[Float|floats]] indicating the position X, Y and Z of the vehicle's dummy. It returns ''false'' otherwise. This is a command to get the position of the player's vehicle dummy position specified as an argument.
    1 KB (165 words) - 20:43, 23 September 2021
  • Returns an ''integer'' indicating the camera's interior, ''false'' if the argument is invalid. Returns an ''integer'' indicating the camera's interior, ''false'' if the argument is invalid.
    2 KB (232 words) - 17:54, 12 February 2021
  • Returns a [[string]] indicating the ped's move state, or ''false'' if the ped is not streamed in, the movement type i outputChatBox( playerName .. "'s current moveState is: " .. moveState, 0, 150, 0, true )
    1 KB (202 words) - 13:14, 23 July 2022
  • ...t ) == "vehicle" and type ( property ) == "string" then -- Make sure there's a valid vehicle and a property string if value then -- If there's a value (valid property)
    2 KB (208 words) - 20:55, 10 October 2015
  • Returns the [[element]] which is the projectile's target if the projectile is valid and can have a target (like a heat-seekin outputChatBox("Created projectile's target: "..getPlayerName(getProjectileTarget(theProjectile)))
    2 KB (188 words) - 01:29, 10 September 2016
  • local x, y, z = getElementPosition( source ) -- get player's position for adding blood -- this adds blood to player's current position
    1 KB (189 words) - 10:01, 21 June 2019
  • ...unction gets the amount of ammo left in a [[Element/Weapon|custom weapon]]'s magazine/clip. Returns the amount of ammo in the [[Element/Weapon|custom weapon]]'s clip, ''false'' if an error occured.
    2 KB (204 words) - 21:44, 7 May 2017
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type --> *'''string''' A string containing the name of the element's current font, or false if the gui element passed to the function is invalid
    2 KB (334 words) - 15:50, 17 April 2021
  • ...ring not to load them at all. Refer to the second example on that page, it's a client-side function and cannot be used next to assignLOD.}} ...how to correctly call the function by embedding it into the target element's createObject (for map models).
    2 KB (225 words) - 19:07, 27 September 2023
  • *'''x:''' A float of the 2D x position of the DGS selector on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the DGS selector on a player's screen. This is affected by the ''relative'' argument.
    2 KB (339 words) - 15:10, 26 November 2023
  • This example get's the alive players from the team "MTA". Author(s): Castillo, Karlis
    2 KB (188 words) - 06:33, 14 June 2012
  • *'''weaponSlot:''' an integer representing the weapon slot (set to the ped's currently selected slot if not specified). Returns an [[int]] containing the amount of ammo in the specified ped's currently selected or specified clip, or 0 if the ped specified is invalid.
    2 KB (209 words) - 16:58, 8 October 2018
  • *'''x:''' A float of the 2D x position of the dxGUI window on a player's screen. *'''y:''' A float of the 2D y position of the dxGUI window on a player's screen.
    1 KB (184 words) - 22:32, 20 August 2013
  • *'''x:''' A float of the 2D x position of the dxGUI window on a player's screen. *'''y:''' A float of the 2D y position of the dxGUI window on a player's screen.
    1 KB (193 words) - 15:39, 1 October 2013
  • ...d to get where the gun shoots at. They are based on [[processLineOfSight]]'s. You have to specify all the eight flags for the function to succeed. These *** '''checkBuildings''': allows the shoot to be blocked by GTA's internally placed buildings, i.e. the world map.
    3 KB (449 words) - 18:21, 23 December 2014
  • MTA's map files are also in XML format.
    1 KB (191 words) - 20:18, 23 September 2016
  • *'''x:''' A float of the 2D x position of the checkbox on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the checkbox on a player's screen. This is affected by the ''relative'' argument.
    4 KB (539 words) - 08:09, 30 October 2023
  • {{New feature|3|1.0|This function allows you to set whether a player's nametag visibility both clientside and serverside}} Use this to define whether the player's name tag is visible or invisible.
    2 KB (211 words) - 14:12, 24 March 2016
  • *'''x:''' A float of the 2D x position of the chart on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the chart on a player's screen. This is affected by the ''relative'' argument.
    3 KB (391 words) - 13:50, 10 January 2023
  • *'''x:''' A float of the 2D x position of the image on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the image on a player's screen. This is affected by the ''relative'' argument.
    3 KB (422 words) - 09:25, 17 January 2021
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    2 KB (229 words) - 12:20, 15 October 2019
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    2 KB (244 words) - 08:37, 5 February 2021
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type --> ...if successfully destroyed and ''false'' if it could not be deleted (ie. it's not valid).
    2 KB (352 words) - 18:15, 21 February 2021
  • Returns three ''float''s indicating the size of the garage, false if an invalid garageID has been pr ...ID < 50 ) then -- We check if the garage ID is 0 and lower than 50 ( there's only 49 garages ).
    2 KB (232 words) - 06:04, 3 March 2023
  • This function gets a player's current wanted level. The wanted level is indicated by the amount of stars Returns an ''int'' from 0 to 6 representing the player's wanted level, ''false'' if the player does not exist.
    2 KB (248 words) - 04:15, 29 December 2014
  • Get the ACL with the given name. If need to get most of the ACL's, you should consider using [[aclList]] to get a table of them all. -- and finally let's set the right
    2 KB (252 words) - 18:21, 21 February 2021
  • This function checks if player's chat is visible.
    503 bytes (57 words) - 08:18, 22 September 2021
  • This event is triggered when any text is output to chatbox, including MTA's internal messages. If this event is [[Event system#Canceling|canceled]], the game's chat system won't deliver the posts. You may use [[outputChatBox]] to send
    1 KB (212 words) - 14:44, 7 October 2021
  • Returns ''true'' if the dgs element's alpha was successfully changed, ''false'' otherwise. This creates a DGS window and allows a player to change it's alpha (the visibleness/transparency) value with a command.
    2 KB (225 words) - 15:14, 12 March 2023
  • *'''x:''' A float of the 2D x position of the GUI button on a player's screen. *'''y:''' A float of the 2D y position of the GUI button on a player's screen.
    3 KB (370 words) - 15:07, 6 August 2019
  • *'''text:''' The wanted [[string]] which is going to be stripped out it's text features. ...enting the strip options. It is formed from single letters, each having it's own role in the final result.
    2 KB (229 words) - 09:05, 30 July 2009
  • It is required that the point is near enough to the local player so that it's within the area where collision data is loaded. If this is not the case, an --we get the player's position
    3 KB (362 words) - 05:23, 12 December 2023
  • ***'''posX''': Absolute X position of the renderer's bounding box. ***'''posY''': Absolute Y position of the renderer's bounding box.
    5 KB (675 words) - 16:20, 25 March 2022
  • *'''x:''' A float of the 2D x position of the DGS cmd on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the DGS cmd on a player's screen. This is affected by the ''relative'' argument.
    2 KB (366 words) - 11:23, 20 January 2018
  • ...e vehicle information such as the vehicle element itself, and the seats it's got. -- Loop over the seats to see if there's a free one
    5 KB (579 words) - 16:20, 17 April 2016
  • * '''thePlayer''': the [[player]] you want to check if it's in the specified [[team]]. ...which gives a cop uniform and nightstick to the player who types it, if he's on a team named "SAPD".
    2 KB (222 words) - 12:40, 15 July 2014
  • *'''index:''' the element's index (0 for the first element, 1 for the second, etc). ...uld output 'Team Base 3: Factory' with the .map file below, even though it's no base.
    2 KB (268 words) - 03:29, 1 January 2015
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    2 KB (233 words) - 06:42, 6 February 2021
  • -- Let's create a new browser in remote mode -- Let's create a new command to check if youtube is loaded and load it if isnt
    2 KB (209 words) - 12:10, 8 April 2020
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    2 KB (237 words) - 10:07, 17 January 2023
  • *'''x:''' A float of the 2D x position of the DGS Tab Panel on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the DGS Tab Panel on a player's screen. This is affected by the ''relative'' argument.
    2 KB (370 words) - 09:27, 17 January 2021
  • *'''rotX:''' The element's rotation around the x axis in degrees *'''rotY:''' The element's rotation around the y axis in degrees
    4 KB (570 words) - 02:26, 3 March 2023
  • --Let's see if they gave an interior ID --Let's see if they gave a interior ID
    3 KB (350 words) - 13:55, 6 August 2016
  • ...rchieve the same result as this function, but also clientside. However, it's more efficient to use the built-in function serverside. The next function r -- The next line returns the result of the original function if it's defined. If not, it counts the number of player elements (to also work clie
    2 KB (253 words) - 07:03, 4 November 2020
  • This example creates a marker inside Toreno's house and adds a command to check whether you are standing on it. ...inder", 2.0, 255, 0, 0, 80 ) -- create a red cylinder marker inside Toreno's house
    2 KB (211 words) - 18:45, 29 October 2023
  • print( utf8.find( "Привет Привет", "%s" ) ) -- 7, 7 print( utf8.find( "Привет Привет", "%s", 1, true ) ) -- nil
    2 KB (221 words) - 14:32, 15 June 2020
  • -- open the door when someone enters the garage's collision shape -- close the door when someone leaves the garage's collision shape
    2 KB (227 words) - 16:45, 11 February 2015
  • light.setConeAngle( 15 ); -- set the spot light's cone angle -- If we want to rotate it according to the player's "front" vector,
    3 KB (455 words) - 13:30, 14 March 2014
  • local function sortHexcolor(s) for line in (s .. "\n"):gmatch("(.-)\n") do
    3 KB (282 words) - 05:30, 18 April 2024
  • if ( getVehicleID ( theVehicle ) == 522 ) then -- if it's an nrg if ( getVehicleID ( theVehicle ) == 522 ) then -- if it's an nrg
    2 KB (218 words) - 08:46, 4 November 2020
  • ...ersistence is equivalent to that of using [[setElementData]] on the player's element. ...ametypes would use "money" as the account key, they'd overwrite each other's data.
    3 KB (238 words) - 15:46, 12 April 2021
  • * '''x1, y1, z1''': The camera's start position. * '''x1t, y1t, z1t''': The camera's start look at.
    6 KB (686 words) - 10:37, 29 October 2023
  • MTA's Deathmatch game mode has been around since the very beginning of MTA's existence, and has always been the most popular. ...pular RPG servers at present are the [http://www.abplayground.net Ankeborg's Playground RPG] server, and the [http://www.argonathrpg.com Argonath RPG] s
    5 KB (760 words) - 14:10, 20 June 2012
  • ...atBox("Invalid player", player); --output to them and tell them that there's no player setPedRotation(player, findRotation(x,y,tx,ty) ); --let's set you facing them
    2 KB (241 words) - 07:41, 17 February 2015
  • ...''' A float of the 2D x position of the DGS Component Selector on a player's screen. This is affected by the ''relative'' argument. ...''' A float of the 2D y position of the DGS Component Selector on a player's screen. This is affected by the ''relative'' argument.
    2 KB (333 words) - 07:41, 4 October 2019
  • The GUI checkbox class represents GUI checkboxes in MTA's GUI system. These can be checked or unchecked.
    377 bytes (53 words) - 18:00, 14 April 2021
  • This function can be used to set the vehicle's doors to be locked or unlocked. Locking a vehicle restricts access to the ...e doors. It means that a player can still access a locked vehicle if there's an opened door. Also, vehicles that doesn't have doors can still be accesse
    2 KB (250 words) - 08:31, 4 November 2020
  • Returns a [[string]] indicating the ped's move state, or ''false'' if the ped is not streamed in, the movement type i outputChatBox( playerName .. "'s current moveState is: " .. moveState, 0, 150, 0, true )
    2 KB (226 words) - 17:53, 8 October 2018
  • *'''fCenterX:''' The X position of the collision polygon's position - the position that will be returned from [[getElementPosition]]. *'''fCenterY:''' The Y position of the collision polygon's position - the position that will be returned from [[getElementPosition]].
    7 KB (918 words) - 09:51, 30 January 2022
  • Az objektosztály a GTA-világban a statikus 3D-s modelleket jelenti. Objektek csak a szerver által létrehozott modellek le * '''scale''': The object's scale.
    2 KB (302 words) - 08:45, 15 April 2021
  • {{New feature/item|3.0160|1.6|20463|This function allows you to set a user's Discord join/invite parameters. It's necessary to use this function to enable that option on Discord.}}
    2 KB (229 words) - 10:22, 30 March 2020
  • *'''x:''' A float of the 2D x position of the progress bar on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the progress bar on a player's screen. This is affected by the ''relative'' argument.
    2 KB (379 words) - 09:22, 30 March 2020
  • This example creates window with Spinner and prints it's minimal value:
    560 bytes (57 words) - 07:06, 6 August 2018
  • This example creates window with Spinner and prints it's maximal value:
    560 bytes (57 words) - 07:07, 6 August 2018
  • if getElementModel ( theVehicle ) == 522 then -- if it's an nrg if getElementModel ( theVehicle ) == 522 then -- if it's an nrg
    2 KB (239 words) - 18:32, 21 February 2021
  • ...w Ram [https://github.com/multitheftauto/mtasa-blue/issues/1567 #1567]. It's might be better to completely release browser, instead of pausing it, when --Let's create a new browser in remote mode.
    2 KB (235 words) - 15:00, 31 May 2021
  • If this event is [[Event system#Canceling|canceled]], the game's chat system won't deliver the posts. You may use [[outputChatBox]] to send if (not normalMessage) then -- it's not normal message
    4 KB (493 words) - 16:02, 3 May 2024
  • ...current access level. Access levels for functions are stored in the server's config file. Use this if you want to prevent a player using a function unle ...h enough access rights. These access rights can be specified in the server's config file.
    2 KB (255 words) - 16:21, 13 February 2015
  • The GUI combobox class represents GUI comboboxes in MTA's GUI system. These are drop down lists that can contain large number of item
    409 bytes (60 words) - 18:05, 14 April 2021
  • ...guaranteed that serials cannot be compromised (hackers using someone else's serial), hence the warning that tells you to never use serials for anything ...e PC of multiple players from around the world (in different internet cafe's) can have the same serial as eachother. If you suspect a duplication like t
    4 KB (649 words) - 10:19, 24 June 2023
  • *'''x:''' A float of the 2D x position of the DGS memo on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the DGS memo on a player's screen. This is affected by the ''relative'' argument.
    2 KB (381 words) - 09:26, 17 January 2021
  • The GUI window class represents GUI windows in MTA's GUI system. These are mainly used as layout for other GUI elements. They ca
    481 bytes (75 words) - 19:10, 14 April 2021
  • This example creating window with label on it's title element:
    730 bytes (77 words) - 15:08, 23 July 2018
  • ...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 (400 words) - 18:17, 21 February 2021
  • It's used as an event when an IDirect3DDevice9 instance is created (?).
    576 bytes (63 words) - 13:09, 14 May 2017
  • This function returns a specific [[Element/Browser|browser]]'s volume. Returns a specific [[Element/Browser|browser]]'s volume, or ''false'' if the browser element passed to the function is inval
    3 KB (395 words) - 18:50, 17 March 2018
  • if (vehicle) then -- We check if he's on a vehicle... if (vehicle) then -- We check if he's on a vehicle...
    2 KB (245 words) - 14:21, 7 June 2015
  • function format(s, tab) return (s:gsub('($%b{})', function(w) return tab[w:sub(3, -2)] or w end))
    2 KB (246 words) - 21:22, 4 March 2024
  • ...course only those which are available serverside. It doesn't matter if it's a MTA function, a Lua standard function or a custom function. -- set the player's team to nil
    3 KB (415 words) - 23:42, 4 July 2014
  • Here's a proposed solution someone might like to implement to greatly reduce the b * Each dimension is in exactly one sync world (there's one by default that all dimensions are in).
    2 KB (296 words) - 17:39, 11 November 2011
  • *'''x:''' A float of the 2D x position of the GUI button on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the GUI button on a player's screen. This is affected by the ''relative'' argument.
    3 KB (407 words) - 16:35, 11 February 2015
  • Returns ''true'' if the element's visibility could be changed, ''false'' otherwise. -- Set a timer to change the window's visibility every 2 seconds, indefinitely
    2 KB (217 words) - 21:06, 21 February 2021
  • This code outputs a random player's name.
    542 bytes (58 words) - 10:27, 16 November 2017
  • *'''x:''' A float of the 2D x position of the GUI tab panel on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the GUI tab panel on a player's screen. This is affected by the ''relative'' argument.
    2 KB (373 words) - 08:10, 30 October 2023
  • ...g in. It also adds a 'removenos' command which allows removal of a player's nos. ...g in. It also adds a 'removenos' command which allows removal of a player's nos. This example is clientside and may cause desync.
    2 KB (264 words) - 08:03, 5 August 2021
  • This example creates window with Spinner and prints it's step size:
    549 bytes (57 words) - 07:08, 6 August 2018
  • This example creates window with Check Box and prints it's text:
    537 bytes (58 words) - 15:53, 24 July 2018
  • * S.W.A.T. - Police tank with sprayable hose (ID: 601) The source of this event is the player who fired the vehicles gun(s).
    3 KB (373 words) - 02:34, 31 October 2016
  • 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.
    3 KB (422 words) - 22:33, 18 December 2014
  • *'''immediate:''' A [[boolean]] if set to true will cancel the sound if it's already playing. This parameter only works for stopping the sound. ...we invert (toggle) the variable, so if it's false, it becomes true, if it's true, it becomes false.
    3 KB (354 words) - 16:35, 20 September 2021
  • *'''x:''' A float of the 2D x position of the button on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the button on a player's screen. This is affected by the ''relative'' argument.
    3 KB (406 words) - 10:45, 16 February 2021
  • MTA's Stunt game mode has been around since version 0.2.2 of MTA:VC. ...ial release of Stunt was rather basic. It had 6 skins (versus the 7 of 0.5's Stunt), and featured only simple ramp placement.
    3 KB (409 words) - 14:10, 20 June 2012
  • ...e/source/detail?r=6209 6209] * Update for r6208 Added missing code for 1.4's OOP ...ail?r=5969 5969] TODO * Update for r5934 - Fixed some streaming issues (It's nearly finished)'''
    3 KB (390 words) - 19:32, 4 August 2015
  • A: Yes, it's freeware! A: It's still there but almost no-one uses it. You can read more about it [https://
    2 KB (316 words) - 22:20, 2 January 2022
  • *'''x:''' A float of the 2D x position of the DGS menu on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the DGS menu on a player's screen. This is affected by the ''relative'' argument.
    3 KB (382 words) - 07:55, 12 August 2023
  • Returns ''true'' if the gui element's size was set successfully, ''false'' otherwise. --Set a timer to change the window's size every 2 seconds, infinite times
    2 KB (213 words) - 17:20, 21 November 2018
  • -- if it's an ingame player, --get the player's name
    2 KB (259 words) - 02:55, 27 September 2018
  • This example prints the name of a player's task to the chat when they use the "task" command in the console. outputChatBox ( getPlayerName( source ) .. "'s " .. priority .. "(" .. taskType .. ") task is: " .. taskName )
    2 KB (285 words) - 11:06, 26 June 2014
  • *'''x:''' A float of the 2D x position of the GUI button on a player's screen. This is affected by the ''relative'' argument. *'''y:''' A float of the 2D y position of the GUI button on a player's screen. This is affected by the ''relative'' argument.
    3 KB (398 words) - 08:09, 30 October 2023
  • This function sets either a specific [[Element/Browser|browser]]'s volume, or the overall volume for browsers. --Let's create a new browser in remote mode.
    2 KB (251 words) - 15:15, 8 April 2020
  • ***''color2:'' A number ranges from 0 to 100, indicates the S (saturation) value of the color. ***''color2:'' A number ranges from 0 to 100, indicates the S (saturation) value of the color.
    2 KB (271 words) - 07:26, 4 October 2019
  • if getElementModel ( vehicleEntered ) == 522 then -- if it's a nrg if getElementModel ( vehicleExited ) == 522 then -- if it's a nrg
    2 KB (239 words) - 20:56, 20 February 2021
  • -- if he's in a vehicle, -- if he's not in a vehicle,
    2 KB (264 words) - 20:49, 11 April 2021
  • if getElementModel ( vehicleEntered ) == 522 then -- if it's a nrg if getElementModel ( vehicleExited ) == 522 then -- if it's a nrg
    2 KB (240 words) - 17:42, 22 December 2018
  • The GUI tab class represents GUI tabs in MTA's GUI system. These highly rely on GUI [[Element/GUI/Tab panel|tab panels]] a
    425 bytes (70 words) - 19:03, 14 April 2021
  • This example creates window with Check Box and prints it's checked state:
    569 bytes (61 words) - 15:55, 24 July 2018
  • *'''startX:''' The first point's world X coordinate. *'''startY:''' The first point's world Y coordinate.
    6 KB (815 words) - 14:00, 27 June 2020
  • ...he driver, as ipairs starts at 1 and the driver seat is ID 0. And if there's an empty seat, ipairs will stop looping. You should use a pairs loop instea ...utConsole("Seat " .. seat .. ": " .. getPlayerName(occupant)) -- Print who's in the seat
    2 KB (277 words) - 08:24, 22 October 2019
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    2 KB (269 words) - 19:25, 2 January 2015
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    2 KB (241 words) - 11:41, 7 August 2019
  • -- Get the player's position '''Example 3:''' This example creates a ball moving (in front of CJ's house in Grove Street) using easing functions. Test command is "/smove" for
    5 KB (672 words) - 23:13, 17 July 2022
  • The GUI static image class represents GUI static images in MTA's GUI system. These are custom images which can be loaded to clients screen.
    432 bytes (64 words) - 18:54, 14 April 2021
  • -- Let's create a new browser in remote mode -- Let's create a new command to check if youtube is loaded and load it if isnt
    2 KB (245 words) - 13:07, 21 August 2018
  • The GUI label class represents GUI labels in MTA's GUI system. These are simply a bunch of text which client cannot modify.
    391 bytes (61 words) - 19:07, 14 April 2021
  • Returns a string containing the requested player's name, or ''false'' if the player passed to the function is invalid.
    731 bytes (66 words) - 07:51, 28 September 2023
  • Position: You can reposition a component relative to it's chassis or parent Rotate: You can rotate the component around it's axis
    3 KB (504 words) - 22:04, 5 December 2018
  • Position: You can reposition a component relative to it's chassis or parent Rotate: You can rotate the component around it's axis
    3 KB (504 words) - 22:04, 5 December 2018
  • {{New items|3.0152|1.5.2|This useful function is no longer neeeded because it's already included in every script.|7596}}
    662 bytes (88 words) - 12:02, 24 January 2016
  • This function disconnects the server from the IRC server it's connected to.
    573 bytes (63 words) - 16:25, 21 July 2016
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    2 KB (275 words) - 05:18, 15 July 2014
  • ...t ) == "vehicle" and type ( property ) == "string" then -- Make sure there's a valid vehicle and a property string if value then -- If there's a value (valid property)
    2 KB (256 words) - 09:39, 9 April 2018
  • The GUI gridlist class represents GUI gridlists in MTA's GUI system. It can be used for example as a selection list or as a list to
    491 bytes (72 words) - 18:15, 14 April 2021
  • ..., 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 ID will be displayed in the chatbox when the vehicle is spawned.
    2 KB (290 words) - 11:29, 26 June 2014
  • This example creates window with edit box, and prints it's maximal length:
    580 bytes (64 words) - 15:31, 24 July 2018
  • ...es. Lots of people have complained that 25 fps is too low though (Rockstar's choice of speed) so the team have said that they will look into possibly in ...be able to co-exist with any other modification that doesn't modify GTA:SA's files either.
    4 KB (639 words) - 10:48, 15 January 2012
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    2 KB (274 words) - 18:15, 21 February 2021
  • This function changes the 'explodable state' of a vehicle's fuel tank, which toggles the ability to blow the vehicle up by shooting the Returns ''true'' if the vehicle's fuel tank explodable state was successfully changed, ''false'' otherwise.
    2 KB (278 words) - 14:11, 13 June 2021
  • This function allows you to check is the element's range to the main point is smaller than (or as big as) the maximum range. if isElementInRange(p, x, y, z, 25) then -- check if the player's range to the command user is 25m.
    2 KB (262 words) - 11:16, 29 October 2023
  • Returns ''true'' if the element's visibility could be changed, ''false'' otherwise. --Set a timer to change the window's visibility every 2 seconds, infinite times
    2 KB (255 words) - 17:51, 13 January 2023
  • This function gets the player's weapon slot.
    549 bytes (58 words) - 16:27, 13 February 2015
  • 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
    476 bytes (70 words) - 18:28, 14 April 2021
  • ...AccountData]]存储的字符串. Data stored as account data is persistent across user's sessions and maps, unless they are logged into a guest account. ...ametypes would use "money" as the account key, they'd overwrite each other's data.
    2 KB (254 words) - 20:05, 11 April 2021
  • The [[event system#Event source|source]] of this event is the client's [[root element]]. ...tever function it is attached to with every frame. Depending on the server's maximum FPS and what your computer might handle - you might end up triggeri
    2 KB (220 words) - 16:11, 4 February 2024
  • *'''creator:''' the explosion's simulated creator, the [[player]] responsible for it. *'''camShake:''' a float specifying the camera shake's intensity.
    6 KB (763 words) - 11:44, 11 January 2024
  • ...includes an IRC command '!limitusers' which can used to change the channel's maximum user limit. if tonumber( params[2] ) then -- check if it's a number, but don't convert it to a number
    2 KB (271 words) - 19:44, 14 August 2009
  • Portland's gameplay is pretty basic. You spawn as Claude, armed with only a baseball b
    532 bytes (82 words) - 14:10, 20 June 2012
  • ...uld be the argument's name as in the argument list above, NOT the argument's data type -->
    3 KB (281 words) - 18:29, 21 February 2021
  • Sets a ped's audio type.
    564 bytes (79 words) - 01:48, 1 March 2014
  • This function sets a vehicle's turn velocity relative to the vehicle's center or mass.
    2 KB (282 words) - 16:12, 27 January 2020
  • ...rue/false to enable/disable asynchronous loading. Only works if the client's preferences has 'Asynchronous Loading' set to 'Auto'. *'''force:''' If set to true, ignores the client's preferences.
    2 KB (267 words) - 20:11, 23 September 2021
  • ...eSearchLight''': the searchlight to get the position where the searchlight's light cone ends. ...ill return three ''float'', which are the three coordinates of searchlight's end position. If not, it will return ''false'' plus an error message.
    2 KB (239 words) - 17:08, 2 January 2022
  • 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
  • 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
  • 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 (274 words) - 13:46, 25 October 2020
  • *'''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
  • if xmlFile then -- If it's indeed opened Since the XML will change, it should NOT be included in the resource's meta.xml file. MTA will think that file is corrupted and will download it a
    5 KB (633 words) - 20:52, 12 May 2019
  • * '''speed''': speed to decrease or increase the guiElement's alpha (from 50 to unlimited). * '''decrease/increase''': decrease/increase's amount (from 1 to 255).
    3 KB (262 words) - 15:54, 15 June 2018
  • This event is triggered ''after'' an element's [[element data|data]] entry is changed. Such changes can be made on the cli This example checks and possibly reverses an element's data change.
    2 KB (332 words) - 18:17, 7 June 2023
  • The GUI edit field class represents GUI edit fields in MTA's GUI system. You can input text in these which you can afterwards check from
    482 bytes (78 words) - 18:10, 14 April 2021
  • local edit= guiCreateMemo ( 0.4, 0.4, 0.4, 0.08, "it's edit!", true )
    664 bytes (75 words) - 17:16, 7 July 2019
  • ...ts and offering many fast vehicles dotted around the map. Unlike Vice City's dedicated [[MTA:VC Stunt Gamemode|Stunt mode]], however, Staunton offers st
    589 bytes (91 words) - 14:11, 20 June 2012
View (previous 500 | ) (20 | 50 | 100 | 250 | 500)