Search results

Jump to navigation Jump to search
  • ...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.}} setElementRotation(lod, getElementRotation(element))
    2 KB (225 words) - 19:07, 27 September 2023
  • ...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
  • float, float, float getElementRotation ( element theElement [, string rotOrder = "default" ] ) ...der'' argument) if ''element'' exists and is a valid element, ''false'' if it's invalid.
    2 KB (330 words) - 14:24, 29 August 2018
  • ...nto another by calculating the rotation and position offset automatically. It works exactly like [[attachElements]] but you don't need to provide offset local tx, ty, tz = getElementRotation (theAttachToElement)
    3 KB (358 words) - 10:45, 29 October 2023
  • {{Deprecated|getElementRotation|}} ...ot 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)''' }}
    1 KB (159 words) - 08:27, 7 September 2019
  • {{OOP||[[element]]:setRotation|rotation|getElementRotation}} ...'"default"'' on peds) can not be set manually on other element types since it only exists due to historical and backward compatibility reasons.
    4 KB (570 words) - 02:26, 3 March 2023
  • {{Deprecated|getElementRotation|}} ...ct exists, ''false'' in the first variable and ''nil'' in the other two if it's invalid.
    1 KB (169 words) - 08:06, 4 November 2020
  • {{Deprecated|getElementRotation|}} ...n returns the current rotation (in degrees) of a player around the Z axis. It's used with on-foot players: use [[getVehicleRotation]] on the occupied [[v
    1 KB (189 words) - 16:13, 13 February 2015
  • -- Otherwise it will look all funny local frRotX, frRotY, frRotZ = getElementRotation( from )
    3 KB (398 words) - 01:07, 10 April 2011
  • local rotation = select(3, getElementRotation(p)) ...displays on the Client screen the cardinal point of the direction in which it is.
    1 KB (160 words) - 10:48, 29 October 2023
  • 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
  • ...oat indicating the related angle between the first element and the second. It returns ''false'' if invalid parameters are provided. local _, _, rz = getElementRotation(targetElement)
    4 KB (430 words) - 01:09, 4 April 2023
  • This class is called POP because it doesn't use any OOP functions while keeping Lua's class structure. matrixObj.rotation = { getElementRotation(ply) }
    3 KB (357 words) - 12:56, 14 February 2024
  • ...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
  • ...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
  • ...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 local rx, ry, rz = getElementRotation(element, "ZXY")
    5 KB (724 words) - 22:08, 25 December 2020
  • -- At this point we know that the ped needs to move it local _, _, intRZ = getElementRotation (localPlayer)
    6 KB (815 words) - 14:00, 27 June 2020
  • -- if a player triggered it, not the admin, local rotZ = getElementRotation ( sourcePlayer ) -- get the player's rotation around the Z axis in degrees
    10 KB (1,288 words) - 20:46, 20 June 2021
  • 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