Search results

Jump to navigation Jump to search
  • ...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
View ( | ) (20 | 50 | 100 | 250 | 500)