Search results

Jump to navigation Jump to search
  • {{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
  • *'''size:''' a float value indicating the size of the initial patch of fire. It will also make the fire to stay alive more or less time. ...nd, which creates a patch of fire in the position of the player that types it.
    1 KB (154 words) - 14:56, 8 September 2014
  • -- Maybe I missed some vehicles, feel free to edit it. ...= getElementModel(vehicle) -- Get the model ID of the vehicle to work with it.
    4 KB (476 words) - 13:10, 16 August 2014
  • 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
View ( | ) (20 | 50 | 100 | 250 | 500)