Search results

Jump to navigation Jump to search
  • Returns an [[Element|element]] if it's within the specified '''distance''', ''false'' otherwise. local elements = getElementsWithinRange(Vector3(getElementPosition(player)), distance, type, getElementInterior(player), getElementDimension(p
    2 KB (273 words) - 07:37, 1 November 2023
  • local x, y, z = getElementPosition(getPedOccupiedVehicle(thePlayer) or thePlayer) ...example 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
  • ...pearing 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.}} setElementPosition(lod, getElementPosition(element))
    2 KB (225 words) - 19:07, 27 September 2023
  • {{IT/MainP}} {{IT/Funzioni client}}
    881 bytes (98 words) - 08:36, 16 December 2011
  • ...oat indicating the related angle between the first element and the second. It returns ''false'' if invalid parameters are provided. local pointX, pointY = getElementPosition(thisElement)
    4 KB (430 words) - 01:09, 4 April 2023
  • Returns ''true'' if the position is inside the radar area, ''false'' if it isn't or if any parameters are invalid. -- get the x, y coordinates from getElementPosition (z gets silently discarded)
    1 KB (147 words) - 10:26, 30 January 2022
  • ...ions:''' A table of options. It is not mandatory, but when it is provided, it must be a table. For a list of options, see the [https://github.com/kikito/ ...rns a string. The contents can change if we update the inspect library, so it is not expected to be consistent across Lua versions.
    2 KB (203 words) - 22:04, 29 January 2020
  • ...players that are within a certain range if there is minimum 1 player else it returns false. local x,y,z = getElementPosition(playerSource);
    1 KB (159 words) - 12:35, 3 October 2020
  • This function takes two sets of XY coordinates. It returns the direction from point A to point B. This can for example be used This command makes the player who enters it face the player whose name is given.
    2 KB (241 words) - 07:41, 17 February 2015
  • local px, py, pz = getElementPosition(theElement) if (hitElement == theElement) then -- If it collides with the element return true
    2 KB (188 words) - 11:27, 29 October 2023
  • ...behavior of [[isPedInVehicle]] server-sided for [[player]] elements ONLY. It checks if a specified [[player]] is actually in a [[vehicle]] and not just ...fully completed entering a [[vehicle]] and hasn't fully completed exiting it yet, ''false'' otherwise.
    2 KB (263 words) - 17:37, 27 January 2023
  • ...that holds the direction and distance between two points. In other words, it produces exactly the same result as substracting the points' coordinates an vehicle1x, vehicle1y, vehicle1z = getElementPosition ( vehicle1 )
    2 KB (268 words) - 08:30, 7 September 2019
  • ...that holds the direction and distance between two points. In other words, it produces exactly the same result as substracting the points' coordinates an This example gets the distance between two vehicles and outputs it to the chat box.
    3 KB (452 words) - 17:20, 25 February 2022
  • ...mmand that creates a M4 where the player uses it, and gives 1 clip ammo to it. local wep = createWeapon("m4", getElementPosition(localPlayer))
    1 KB (145 words) - 17:23, 23 December 2014
  • ...example checks if the object created is breakable and if it is then breaks it. local x, y, z = getElementPosition(localPlayer)
    900 bytes (112 words) - 22:23, 16 September 2016
  • ...example checks if the object created is breakable and if it is then breaks it. local x, y, z = getElementPosition(plr)
    1 KB (140 words) - 16:30, 6 August 2016
  • outputServerLog( table.concat({getElementPosition(source)}, ", ") ) ...xist but aren't supposed to be (like forbidden, where they can still spawn it through creation vulnerability, or identify which resource is hooked into (
    3 KB (300 words) - 08:22, 4 November 2020
  • 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, local px, py, pz = getElementPosition ( thePlayer )
    3 KB (362 words) - 05:23, 12 December 2023
  • {{Note|Disabling a peds collisions will cause some problems, such as it being unable to move or wrong rotation after creation.}} local playerX, playerY, playerZ = getElementPosition(thePlayer)
    2 KB (214 words) - 16:27, 20 January 2020
  • {{IT/MainP}} {{IT/Funzioni client}}
    1 KB (149 words) - 12:48, 3 August 2011
  • ...ator:''' the explosion's simulated creator, the [[player]] responsible for it. local pX, pY, pZ = getElementPosition ( source )
    6 KB (763 words) - 11:44, 11 January 2024
  • ...overlay grain effect. The game will draw it on top of other grain effects. It can be used to imitate an effect of radiation or electromagnetic disturbanc local x, y, z = getElementPosition( localPlayer )
    1 KB (133 words) - 01:46, 26 July 2023
  • ...ent. These events can only trigger when the client has its cursor enabled. It triggers for all three mousebuttons in both their up and down states. This example prints type of the element you clicked to chatbox when you click it.
    3 KB (348 words) - 02:56, 27 September 2018
  • [[File:DxDrawImageOnElement.png|thumb|Example of how it should looks like.|284x230px]] * ''TheElement'': The element you want to draw the image on it.
    4 KB (593 words) - 16:18, 21 July 2023
  • ...hel charge, returns the [[element]] at which it is glued to (or ''nil'' if it isn't glued to any).}} local x,y,z = getElementPosition(getLocalPlayer()) -- Get the position of the player
    2 KB (188 words) - 01:29, 10 September 2016
  • This function takes two sets of XYZ coordinates. It returns the 3D direction from point A to point B. This can for example be u This command makes the player's vehicle to rotate at vehicle near it.
    3 KB (404 words) - 14:24, 21 March 2023
  • ...a while. Because it's a client side only function, other players won't see it, so custom events or custom objects will be needed to make a fire visible t ...nd, which creates a patch of fire in the position of the player that types it.
    1 KB (209 words) - 01:53, 8 September 2021
  • ...- if visibility for root is set to false and for a player is set to true, it will be visible to the player. *'''visible:''' Whether you are making it visible or invisible to the player.
    3 KB (447 words) - 13:48, 25 December 2023
  • local px, py, pz = getElementPosition(localPlayer) -- output it to the console
    1 KB (183 words) - 16:19, 8 April 2024
  • .... 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.}} local playerX, playerY, playerZ = getElementPosition (localPlayer)
    1 KB (168 words) - 15:59, 23 September 2021
  • If you use this function on vehicles with shared names, 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
  • ...weenPoints3D(x, y, z, getElementPosition(ele)) <= range -- returns true if it the range of the element to the main point is smaller than (or as big as) t local x, y, z = getElementPosition(player)
    2 KB (262 words) - 11:16, 29 October 2023
  • If you use this function on vehicles with shared names, 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
  • This example creates a polygon colshape and show height of it with command 'getpolyheight'. local x, y = getElementPosition ( colPoly )
    2 KB (187 words) - 03:51, 1 June 2022
  • * '''weapon''': If the type is a Weapon pickup, then it represents the [[Weapon|weapon ID]] of the weapon pickup. When used with th ...ntPosition ( source ) --get the position of the person who died and define it as x, y and z
    3 KB (475 words) - 19:32, 21 May 2023
  • ...ain location. The water level is 0 in most places though it can vary (e.g. it's higher near the dam). local x, y, z = getElementPosition ( thePlayer ) -- get his position
    2 KB (300 words) - 10:19, 30 January 2022
  • ...and named ''getscale'' which creates an object and prints out the scale of it. local theObject = createObject(1337, getElementPosition(localPlayer))
    991 bytes (122 words) - 14:19, 2 February 2021
  • local x1,y1,z1 = getElementPosition(sm.object1) local x2,y2,z2 = getElementPosition(sm.object2)
    6 KB (686 words) - 10:37, 29 October 2023
  • ...want a custom weapon to take into account recoil, you will have to script it by firing at fixed coordinates.}} * '''theTarget:''' The [[element]] to shoot at. It can be a [[player]], [[ped]], [[vehicle]] or [[object]].
    4 KB (551 words) - 01:05, 16 January 2023
  • If a boolean was passed to the function, it always succeeds and returns ''true''. ...localPlayer) == 17 and getDistanceBetweenPoints3D(493.39, -22.72, 1000.68, getElementPosition(localPlayer)) < 50 and getInteriorSoundsEnabled() then
    1 KB (126 words) - 08:49, 15 June 2014
  • local x,y,z = getElementPosition ( creator ) ...tData ( claymoreCol , "type", "claymore" ) --store the type of colshape so it can be retrieved
    3 KB (429 words) - 09:26, 6 November 2023
  • ...tElementPosition (somewhere far away) and then destroyElement (which makes it explode). ...here the teargas got created, and also the teargas keeps getting warped to it. This will result in +/-60hp loss for the creator.
    2 KB (302 words) - 18:55, 7 September 2023
  • This event is triggered every time GTA renders a new frame. It is required for the DirectX drawing functions, and also useful for other cl local x, y, z = getElementPosition ( localPlayer )
    1 KB (197 words) - 11:06, 2 March 2014
  • ...ers) or detecting if a point is on the screen (though it does not check if it is actually visible, you should use [[processLineOfSight]] for that). ...ce the position can be off screen before the function returns false. Note: it's clamped down on both axies to the size of screen at the given axis*10
    2 KB (258 words) - 17:29, 2 April 2023
  • {{IT/MainP}} {{IT/Funzioni client}}
    3 KB (327 words) - 12:47, 3 August 2011
  • This element has to create a blip at the nearest garage and removes it in 10 seconds. local ex,ey,ez = getElementPosition (element)
    2 KB (186 words) - 03:42, 25 September 2018
  • This function checks in which way the cursor is currently moving, it's updated version of https://wiki.multitheftauto.com/wiki/GetCursorMoveOn. local x, y, z = getElementPosition(vehicle)
    2 KB (256 words) - 14:48, 8 June 2020
  • ...en local and said remote player (that spawned far away) during this event, it would output the distance at which they died in front of local player, e.g local x, y, z = getElementPosition(localPlayer)
    2 KB (359 words) - 03:51, 22 January 2023
  • ...tion can only remove command handlers that were added by the resource that it is called in. local x, y, z = getElementPosition ( huntedPlayer )
    3 KB (305 words) - 01:59, 9 July 2011
  • [[Image:Drawcircleonelementdemo.jpg|thumb|Example of how it should looks like.|304x250px]] * '''TheElement''': The element you want to draw the text on it.
    2 KB (204 words) - 08:13, 19 October 2022
  • destroyElement ( theZone ) -- if so, destroy it local x,y,z = getElementPosition ( creator )
    4 KB (525 words) - 17:40, 9 October 2018
  • This example creates an antenna, and changes the size of it. local x, y, z = getElementPosition(localPlayer)
    2 KB (215 words) - 14:37, 2 September 2022
  • local x, y, z = getElementPosition(localPlayer) -- Get player position ...mo(customWeapon, 99999) -- Set the ammo in clip of the weapon to 99999, so it never should reload
    2 KB (204 words) - 21:44, 7 May 2017
  • ...unction creates a camera object at a specified location in the game world. It then sets up a timer to check the speed of all vehicles in the game every s local x1, y1, z1 = getElementPosition(vehicle)
    4 KB (405 words) - 21:54, 26 November 2023
  • ...le 1:''' This example attaches a marker to a vehicle, and detaches it when it blows up: local x,y,z = getElementPosition(source);
    2 KB (202 words) - 02:18, 12 August 2022
  • ...one element to another, so that the first one follows the second whenever it moves. ...w attachment. For example, if carA is asked to attached to carB then carC, it is only attached to carC.
    4 KB (492 words) - 16:27, 13 February 2015
  • Returns ''true'' if the position is inside the colshape, ''false'' if it isn't or if any parameters are invalid. return isInsideColShape( theColShape, getElementPosition( theElement ) )
    1 KB (131 words) - 14:07, 10 October 2018
  • This example gets the ammo of the custom weapon and outputs it to the chatbox. local position = Vector3(getElementPosition(localPlayer)) -- get the localPlayer position
    1 KB (146 words) - 14:05, 4 July 2016
  • This function attempts to read a double (native type) from a file and return it. The amount of bytes read should be eight. Returns a double if it was successfully read from the file, '''false''' otherwise.
    3 KB (349 words) - 03:04, 23 January 2022
  • This function attempts to read a double (native type) from a file and return it. The amount of bytes read should be eight. Returns a double if it was successfully read from the file, '''false''' otherwise.
    3 KB (343 words) - 23:42, 16 January 2022
  • {{Warning|Do not use this function to spawn a [[player]]. It will cause problems with other functions like [[warpPedIntoVehicle]]. Use [ {{OOP||[[element]]:setPosition|position|getElementPosition}}
    3 KB (346 words) - 18:55, 30 January 2022
  • local x, y, z = getElementPosition ( sourcePlayer ) -- Get the name of the car the player asked for and store it in the
    2 KB (242 words) - 11:31, 26 June 2014
  • local x, y, z = getElementPosition ( localPlayer ) This event and [[onClientRender]] will trigger whatever function it is attached to with every frame. Depending on the server's maximum FPS and
    1 KB (167 words) - 17:24, 30 July 2020
  • '''Attention:''' Do not use this function to spawn a [[player]]. It will cause problems with other functions like [[warpPedIntoVehicle]]. <br> {{OOP||[[element]]:setPosition|position|getElementPosition}}
    5 KB (579 words) - 16:20, 17 April 2016
  • ...to Google blocking non-user calls to their TTS API. Plase feel free to fix it by using another public and reliable TTS API.|1}} ...d table, the speech will be broadcasted to the players contained in it. If it's a element, the speech will be heard by the players which are children of
    6 KB (752 words) - 17:48, 8 May 2020
  • local x, y, z = getElementPosition ( thePlayer ) -- Get the name of the car the player asked for and store it in the
    2 KB (259 words) - 02:36, 19 April 2021
  • local x, y, z = getElementPosition(localPlayer) -- Give it some ammo and fire it
    2 KB (263 words) - 05:17, 26 August 2021
  • [[Image:dxDrawTextOnElement.png|thumb|Example of how it should looks like.|284x230px]] * ''TheElement'': The element you want to draw the text on it.
    4 KB (566 words) - 22:13, 23 May 2020
  • local playerX, playerY, playerZ = getElementPosition(source) -- get position of player outputChatBox("Rocket minigun overheated! Give it a rest pal!", source) -- output a message
    4 KB (455 words) - 11:49, 16 November 2023
  • ...log state of a specified [[ped]]'s control, as if they pressed or released it. local playerPosition = Vector3( getElementPosition( localPlayer ) )
    1 KB (167 words) - 00:54, 8 July 2018
  • ...is responsible for informing the server about the state of that element - it's position, orientation and other state information. The function can be al .... This is within 140 units for vehicles and 100 units for peds. As soon as it becomes impossible for your chosen player to sync the element, another play
    3 KB (383 words) - 23:15, 30 March 2024
  • local px, py, pz = getElementPosition( v ) This Example get players in range and out put it in chat .
    1 KB (183 words) - 19:26, 4 April 2018
  • -- Otherwise it will look all funny local frPosX, frPosY, frPosZ = getElementPosition( from )
    3 KB (398 words) - 01:07, 10 April 2011
  • ...unction takes a set of XY coordinates, a distance and a rotation argument. It returns XY coordinates of the point that is the given distance away from th local x,y,z = getElementPosition(player);
    1 KB (192 words) - 17:38, 11 March 2023
  • ...one element to another, so that the first one follows the second whenever it moves. ...w attachment. For example, if carA is asked to attached to carB then carC, it is only attached to carC.
    4 KB (587 words) - 19:46, 15 April 2021
  • ...nd ''createmarker'' (which creates a red marker at the caller's position). It then creates a second command handler ''createmarker2'' which will call the -- If a player triggered it (rather than the admin) then
    3 KB (407 words) - 14:49, 24 May 2019
  • {{Warning|Do not use this function to spawn a [[player]]. It will cause problems with other functions like [[warpPedIntoVehicle]]. Use [ {{OOP||[[element]]:setPosition|position|getElementPosition}}
    5 KB (677 words) - 21:23, 8 December 2018
  • This function checks if a ped is aiming and if it is at an certain distance from the object you specified. Returns true if ye local x, y, z = getElementPosition(theElement)
    1 KB (185 words) - 19:14, 17 February 2015
  • ...seOfModel]], or you can estimate it yourself and just spawn the vehicle so it drops to the ground. ...ty with some scripts. It never had any effect, but it is read by the code. It is recommended to ignore this argument, passing ''false'' or the ''variant1
    10 KB (1,271 words) - 08:17, 4 December 2020
  • ...ater at 500 units below the ground at the position of the player who types it. local px, py, pz = getElementPosition(localPlayer)
    1 KB (197 words) - 15:54, 19 April 2021
  • Returns ''true'' if the property is enabled, ''false'' if it is disabled or the specified property name is invalid. x,y,z = getElementPosition(glp)
    2 KB (197 words) - 08:34, 9 September 2023
  • ...gradeOnSlot(pVehicle, 8) then -- Check if the vehicle has nitrous added in it local fX, fY, fZ = getElementPosition(pVehicle)
    2 KB (198 words) - 19:07, 15 June 2021
  • ...nto another by calculating the rotation and position offset automatically. It works exactly like [[attachElements]] but you don't need to provide offset local vec = Vector3 (getElementPosition(theElement))
    3 KB (358 words) - 10:45, 29 October 2023
  • local x, y, z = getElementPosition ( luckyBugger ) -- retrive the player's position local x, y, z = getElementPosition ( luckyBugger ) -- retrive the player's position
    8 KB (656 words) - 15:10, 11 September 2021
  • Returns an [[element]] of the [[blip]] if it was created successfully, ''false'' otherwise. ...le creates a radar blip at a random player's position and makes it so that it is only visible to that player.
    3 KB (503 words) - 15:04, 11 June 2023
  • ...oat values that multiplied to a point will give you the point transformed. It is most useful for matrix calculations such as calculating offsets. For fur matrix[4][1], matrix[4][2], matrix[4][3] = getElementPosition(element)
    5 KB (724 words) - 22:08, 25 December 2020
  • {{IT/MainP}} {{IT/Funzioni server client}}
    4 KB (610 words) - 15:07, 11 June 2023
  • ...ot be cloned. If a player element is a child of an element that is cloned, it will be skipped, along with the elements that exist as a child to the playe local x, y, z = getElementPosition ( occupiedVehicle ) -- get the vehicle's position
    2 KB (317 words) - 03:33, 1 January 2015
  • local px, py, pz = getElementPosition(v) if (hit == v) or (hit == veh) or (not veh) then -- If it collides with the player itself, the client or the players vehicle, continu
    2 KB (263 words) - 19:34, 29 January 2021
  • if (not normalMessage) then -- it's not normal message local playerX, playerY, playerZ = getElementPosition(source) -- get position of player who sent the message
    4 KB (493 words) - 16:02, 3 May 2024
  • ...scripts, this page should probably be changed later, depending how useful it is. ...n any map file entry, MTA automatically recognizes it as a custom one when it starts. Its up to the script to decide how to deal with the information pro
    5 KB (744 words) - 07:07, 4 November 2020
  • local x, y, z = getElementPosition(player) [[IT:createBlip]]
    2 KB (237 words) - 15:06, 11 June 2023
  • This function destroys an [[element]] and all elements within it in the hierarchy (its children, the children of those children etc). [[play ...successfully, ''false'' if either the element passed to it was invalid or it could not be destroyed for some other reason (for example, clientside destr
    5 KB (689 words) - 18:11, 17 November 2021
  • ...function is mainly useful for client side created peds however you can use it on a server side ped, though note that the weapon wouldn't be synced betwee ...d whether to set as the current weapon. If you don't specify an ammo value it will give 30 ammo by default and for a melee weapon you can specify just 1
    2 KB (345 words) - 01:18, 28 December 2014
  • {{RU/OOP||[[Элемент|element]]:setPosition|position|getElementPosition}} -- Make sure it exists!
    6 KB (510 words) - 23:46, 5 January 2017
  • ..., -1684.0, 13.5, 20) -- create a ped at cjs house in grove street and give it an ak ...er) -- if an intruder exists, get its position and have the cj ped fire at it
    2 KB (359 words) - 14:26, 21 September 2023
  • It can also be used to interpolate 2D vectors or scalars by only setting some ...the beginning of the interpolation, 1 at the end). If it is higher than 1, it will start from the beginning.
    9 KB (1,196 words) - 00:34, 30 April 2021
  • ...n ACL. Make sure to add the command to your ACL under the proper group for it to be usefull (i.e <right name="command.killEveryone" access="true"></right ...his will create a red marker at the position of the player player who uses it.
    9 KB (1,360 words) - 01:59, 29 January 2024
  • This function returns ''true'' if the vehicle is going backwards, otherwise it returns ''false'' if the vehicle is going forwards or is stoped. The client-side version is more trustable because it also checks the vehicle gear.
    5 KB (489 words) - 05:43, 3 March 2023
  • local t_PlayerPos = {getElementPosition(localPlayer)} local t_PedPos = {getElementPosition(t_Data.ped)}
    6 KB (815 words) - 14:00, 27 June 2020
  • ...ate was not manually called by scripts - will see the ped teleport around. It will clearly look as if synchronization were broken. local x, y, z = getElementPosition(localPlayer)
    2 KB (303 words) - 09:13, 3 August 2023
  • local x,y,z = getElementPosition(hitElement) -- if a player triggered it, not the admin,
    10 KB (1,288 words) - 20:46, 20 June 2021
  • ...ment to another element, so that the first one follows the second whenever it moves. ...ngle car, but you can attach car to the3DImage , If you attempt to do this it won't work .
    3 KB (388 words) - 02:18, 12 August 2022
  • ...a "resource", and they will all be unzipped and loaded by the server when it starts. To create your own resource, simply make a folder with your preferr ...folder in our case. So create a text file and name it "meta.xml", and open it with notepad.
    22 KB (3,205 words) - 05:39, 11 November 2013
  • * Z argument isn't in use currently, but make your scripts like it is for future compatibility reasons. ...or:''' The [[interior]] you want to limit the search to. If not specified, it can return elements in any interior.
    4 KB (475 words) - 15:38, 3 May 2024
  • This function attempts to read a boolean (native type) from a file and return it. The amount of bytes read should be one. Returns a boolean if it was successfully read from the file, '''nil''' otherwise.
    5 KB (490 words) - 03:04, 23 January 2022
  • This function attempts to read a boolean (native type) from a file and return it. The amount of bytes read should be one. Returns a boolean if it was successfully read from the file, '''nil''' otherwise.
    5 KB (484 words) - 23:44, 16 January 2022
  • ...n ACL. Make sure to add the command to your ACL under the proper group for it to be usefull (i.e <right name="command.killEveryone" access="true"></right ...his will create a red marker at the position of the player player who uses it.
    10 KB (1,168 words) - 08:44, 7 September 2019
  • local origX, origY, origZ = getElementPosition ( theObject ) --get the original position ...el (of a bed) near a player called ''someguy'', if they exist in the game. It will then move the model towards the player over 3 seconds.
    5 KB (672 words) - 23:13, 17 July 2022
  • ...n as being partly equivalent to a program running in an operating system - it can be started and stopped, and multiple resources can run at once. ...to do with scripting happens in resources, what a resource does defines if it is a gamemode, a map, or anything else. MTA comes with resources that you c
    22 KB (3,438 words) - 17:27, 9 March 2024
  • ...atrix#getPosition|Matrix.getPosition]]''' and '''[[getElementMatrix]]'''. It's just: ...e opposite of matrix.forward you'll still use matrix.forward but you minus it instead of matrix.backward which doesn't exist. Same applies with matrix.ri
    5 KB (721 words) - 17:09, 16 February 2022
  • ...hree floats indicating the position ''x'', ''y'' and ''z'' of given dummy. It returns ''false'' otherwise. ...ill draw rectangle over every dummy in vehicle player is currently sitting it.
    3 KB (436 words) - 12:29, 18 January 2021
  • ...position underneath a vehicle. This is the position at any rotation. So if it was upside down, the Z value would be higher than the vehicle Z value. If t local pX, pY, pZ = getElementPosition(vehicle)
    3 KB (191 words) - 00:09, 30 November 2014
  • local x, y, z = getElementPosition ( luckyBugger ) -- pobiera pozycję powyższego gracza local x, y, z = getElementPosition ( luckyBugger ) -- pobiera pozycję powyższego gracza
    6 KB (806 words) - 20:49, 17 June 2021
  • ...or performance, place it as close to the centre of the polygon as you can. It should be noted this shape is '''2D'''. There should be at least 3 bound po ...e collision polygon's position - the position that will be returned from [[getElementPosition]].
    7 KB (918 words) - 09:51, 30 January 2022
  • The 3D line with a large width value effectively becomes a rectangle, so it it possible to construct basic shapes such as boxes with several large width l local x,y,z = getElementPosition(localPlayer)
    3 KB (433 words) - 17:16, 26 October 2018
  • -- Retrieve the player's position and store it in the variables x, y and z local x, y, z = getElementPosition( myPlayer )
    4 KB (587 words) - 15:06, 11 June 2023
  • The 3D line with a large width value effectively becomes a rectangle, so it it possible to construct basic shapes such as boxes with several large width l local x,y,z = getElementPosition(localPlayer)
    3 KB (439 words) - 21:11, 23 September 2021
  • ...or performance, place it as close to the centre of the polygon as you can. It should be noted this shape is '''2D'''. There should be at least 3 bound po ...kszög pozíciójának X pozíciója - the position that will be returned from [[getElementPosition]].
    7 KB (958 words) - 10:58, 16 May 2019
  • Returns an [[element]] of the [[blip]] if it was created successfully, ''false'' otherwise. x,y,z = getElementPosition ( myPlayer ) -- حضار احداثيات الاعب
    4 KB (352 words) - 15:06, 11 June 2023
  • ...ch from this tutorial is [[Introduction to Scripting GUI]], you may follow it to see how Graphical User Interface in MTA:DM is drawn and scripted. ...tain "greet". Argument 3 is something extra the player typed, you'll learn it a little bit further in the tutorial. Never forget that the first 2 argumen
    21 KB (3,450 words) - 03:43, 10 March 2013
  • -- If a player triggered it (rather than the admin) then local x, y, z = getElementPosition ( playerSource )
    9 KB (1,470 words) - 18:31, 21 February 2021
  • It also returns ''false'' when trying to play a track deleted in the recent GT local x, y, z = getElementPosition(localPlayer)
    3 KB (473 words) - 22:19, 7 January 2022
  • * Remember that 99% of the time it's a bug in your script, not an MTA bug! Don't report something to GitHub Is ...he long run as you'll spend less time being confused when you come back to it in a weeks time to debug a problem.
    8 KB (1,269 words) - 17:30, 2 August 2023
  • This outputs the specified text string to the chatbox. It can be specified as a message to certain player(s) or all players. It can optionally allow you to embed color changes into the string by setting
    7 KB (936 words) - 08:31, 5 October 2023
  • -- Retrieve the player's position and store it in the variables x, y and z local x, y, z = getElementPosition( myPlayer )
    4 KB (591 words) - 21:11, 14 June 2021
  • local x, y, z = getElementPosition(randomPlayer) -- następnie pobieramy jego pozycję... [[IT:createBlip]]
    4 KB (519 words) - 15:03, 11 June 2023
  • local x, y, z = getElementPosition(myPlayer) -- Preluăm coordonatele X, Y, Z ale poziției jucătorului; [[IT:createBlip]]
    4 KB (576 words) - 15:04, 11 June 2023
  • ...ordBreak:''' if set to ''true'', the text will wrap to a new line whenever it reaches the right side of the bounding box. If ''false'', the text will alw ...(so called '''text on raster optimisation'''). You can find out more about it [https://forum.mtasa.com/topic/132881-scaling-dx-elements-for-all-resolutio
    5 KB (692 words) - 08:15, 5 November 2023
  • x, y, z = getElementPosition(source) -- s يآتي بمكان الاعب x, y, z x, y, z = getElementPosition(source)
    26 KB (2,258 words) - 00:57, 4 April 2022
  • ...issues. This is a known issue with how GTA creates these types of markers. It is recommended you keep the position at least 1 game unit above the ground local x, y, z = getElementPosition ( thePlayer ) -- get the player's position
    5 KB (695 words) - 12:39, 10 October 2023
  • ...rough" surfaces and will always behave as if the argument is set to FALSE (It will never hit).}} ...ecified element. This is usually set to the object you are tracing from so it does not interfere with the results.
    8 KB (1,061 words) - 14:44, 27 June 2020
  • x,y,z = getElementPosition ( miJugador ) [[IT:createBlip]]
    5 KB (803 words) - 15:04, 11 June 2023
  • -- this will add all the vehicle options onto the gridlist, it is explained later in this tutorial -- when the resource is started, create the GUI and hide it
    20 KB (2,848 words) - 13:34, 25 November 2018
  • ...rzejdziemy najpierw do '''Element functions''', gdzie znajdziemy funkcję [[getElementPosition]]. Klikając nazwę funkcji na liście, pokaże się jej opis. Możemy tam Dla [[getElementPosition]], składnia wygląda tak:
    14 KB (2,053 words) - 10:57, 29 May 2022
  • ...o, lo que nos lleva a buscar una '''Función de Elemento''', la cual es ''[[getElementPosition]]''. Haciendo click en ella, visitarás la documentación de ella, que cont Para la función [[getElementPosition]], el sintaxis sería:
    23 KB (3,689 words) - 19:45, 7 April 2014
  • ...jump karte hain '''Element functions''' jahan par hameu pata chalta hai [[getElementPosition]] function ke baate meu. Function name ko click karne ke baad, hameu functi [[getElementPosition]] ke liye syntax ye hai:
    22 KB (3,653 words) - 06:13, 25 October 2014
  • ...s la rubrique '''Element functions''' où l'on pourra trouver la fonction [[getElementPosition]]. En cliquant sur le nom de la fonction, le wiki va vous afficher sa descr Pour [[getElementPosition]], la syntaxe est:
    24 KB (3,773 words) - 11:24, 16 February 2021
  • <script src="script.lua" type="client"/> <!-- define it separately on client --> * It doesn't remove Lua files which were previously downloaded.
    68 KB (8,381 words) - 16:29, 23 April 2024
  • ...ентами, мы сразу выбираем '''Element functions''', где и находим функцию [[getElementPosition]]. Кликнув по имени функции из списка, вы п Для [[getElementPosition]] синтаксис таков:
    36 KB (768 words) - 17:12, 19 May 2019
  • ...lementek, először az '''Element funkcióhoz''' lépünk, ahol megtaláljuk a [[getElementPosition]] funkciót. A funkció nevére kattintással a listában, eljutsz a funkci A [[getElementPosition]] funkcióhoz szintaxis:
    24 KB (4,290 words) - 14:02, 3 December 2018
  • To use it, you need to add library to your class-path. It's included in the zip file below.
    21 KB (2,792 words) - 20:47, 23 September 2016
  • -- this will add all the vehicle options onto the gridlist, it is explained later in this tutorial -- when the resource is started, create the GUI and hide it
    21 KB (3,277 words) - 12:53, 13 May 2019
  • ...mento, clicamos primeiro em '''Element functions''' onde haverá a função [[getElementPosition]] para tal fim. Ao clicar no link, uma página contendo detalhes sobre essa Para [[getElementPosition]], a sintaxe é:
    27 KB (4,378 words) - 02:10, 6 December 2014