Search results

Jump to navigation Jump to search
  • 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
  • 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 (180 words) - 21:37, 23 May 2024
  • ...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
  • 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) - 18:37, 26 May 2024
  • *'''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
  • ...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
View ( | ) (20 | 50 | 100 | 250 | 500)