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
View (previous 250 | ) (20 | 50 | 100 | 250 | 500)