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