Search results

Jump to navigation Jump to search
  • These are the vehicle colors you can get with [[getVehicleColor]]. {{Vehicle colors}}
    297 bytes (38 words) - 07:16, 1 January 2022
  • These are the vehicle colors you can use with [[setVehicleColor]] and [[getVehicleColor]]. {{Vehicle colors}}
    251 bytes (31 words) - 05:56, 22 March 2016
  • This event is triggered when a vehicle respawns. The source of this event is the vehicle that respawned.
    576 bytes (70 words) - 00:35, 14 May 2012
  • This event is triggered by a trailer when it gets attached to a towing vehicle. vehicle towedBy
    797 bytes (102 words) - 19:56, 22 September 2016
  • {{Vehicle colors}} {{RU/Vehicle functions}}
    504 bytes (27 words) - 11:21, 13 April 2021
  • This event is triggered when a player or ped has exited a vehicle. vehicle theVehicle, int seat
    1,007 bytes (125 words) - 04:41, 20 October 2020
  • This event is triggered when a vehicle explodes. The source of this event is the vehicle that exploded.
    665 bytes (80 words) - 21:15, 12 August 2023
  • {{Vehicle colors}} {{Vehicle functions}}
    371 bytes (51 words) - 21:48, 21 February 2021
  • ...delay, the vehicle is respawned. You can use this function to prevent the vehicle from respawning. bool resetVehicleExplosionTime ( vehicle theVehicle )
    1 KB (160 words) - 04:34, 16 May 2023
  • This event is triggered when a trailer gets detached from its towing vehicle. vehicle towedBy
    797 bytes (99 words) - 00:41, 14 May 2012
  • This function returns a table containing the handling data of the specified vehicle model. Note: the data returned may not reflect the actual handling of a particular vehicle, since this may be overriden by the [[setVehicleHandling]] function.
    1 KB (143 words) - 15:41, 13 October 2014
  • Resets the vehicle idle time bool resetVehicleIdleTime ( vehicle theVehicle )
    1,003 bytes (125 words) - 04:33, 16 May 2023
  • ...e/item|1.5.9|1.5.8|20740|This event is fired when a [[ped]] has exited a [[vehicle]].}} vehicle theVehicle, int seat
    1,002 bytes (119 words) - 21:02, 23 September 2021
  • ...0797|This function resets the [[vehicle]] dependent dummy positions to the vehicle's current model dummy positions.}} bool resetVehicleDummyPositions ( vehicle theVehicle )
    652 bytes (69 words) - 20:44, 23 September 2021
  • ...won't take damage from bullets, hits, explosions or fire. A damage proof's vehicle health can still be changed via script. bool setVehicleDamageProof ( vehicle theVehicle, bool damageProof )
    952 bytes (115 words) - 23:54, 17 December 2014
  • {{Vehicle colors}} {{Vehicle functions}}
    357 bytes (45 words) - 21:48, 21 February 2021
  • {{New feature/item|3|1.0||This function returns a vehicle's engine state (on or off).}} bool getVehicleEngineState ( vehicle theVehicle )
    1 KB (127 words) - 18:59, 19 September 2018
  • Spawns a vehicle at any given position and rotation bool spawnVehicle ( vehicle theVehicle, float x, float y, float z [, float rx, float ry, float rz ] )
    1 KB (203 words) - 01:36, 20 June 2016
  • This will tell you if a vehicle's petrol tank is explodable. <syntaxhighlight lang="lua">bool isVehicleFuelTankExplodable ( vehicle theVehicle )</syntaxhighlight>
    1 KB (158 words) - 07:32, 16 February 2013
  • ...he current gravity vector of a vehicle. This is the direction in which the vehicle falls, also the cameras of any passengers will be rotated to match it. <syntaxhighlight lang="lua">float float float getVehicleGravity ( vehicle theVehicle )</syntaxhighlight>
    938 bytes (123 words) - 11:41, 12 July 2017
  • ...s from the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]] For more functions, check the [[Useful_Functions|useful functions page]].
    2 KB (212 words) - 23:30, 29 April 2024
  • This function toggles whether or not the vehicle will be respawned after blown or idle. <syntaxhighlight lang="lua">bool toggleVehicleRespawn ( vehicle theVehicle, bool Respawn )</syntaxhighlight>
    1,009 bytes (120 words) - 23:51, 17 December 2014
  • This function returns a table of the current vehicle handling data. {{OOP||[[vehicle]]:getHandling|handling}}
    1 KB (188 words) - 15:43, 13 October 2014
  • This event is fired when a player has entered a vehicle. vehicle theVehicle, int seat
    966 bytes (119 words) - 18:31, 29 November 2020
  • ...the current handling of a vehicle, or [[getModelHandling]] for a specific vehicle model. *'''modelID:''' The vehicle ID you wish to get the original handling from.
    2 KB (208 words) - 20:55, 10 October 2015
  • This function sets the rotation the vehicle will respawn to. <syntaxhighlight lang="lua">bool setVehicleRespawnRotation ( vehicle theVehicle, float rx, float ry, float rz )</syntaxhighlight>
    1 KB (141 words) - 10:44, 6 September 2018
  • ...and the varying types of a motor bike. For the default variant list see: [[Vehicle variants]]. <syntaxhighlight lang="lua">int, int getVehicleVariant ( vehicle theVehicle )</syntaxhighlight>
    1 KB (177 words) - 12:43, 19 September 2021
  • This function attaches a trailer type vehicle to a trailer-towing-type vehicle. <syntaxhighlight lang="lua">bool attachTrailerToVehicle ( vehicle theVehicle, vehicle theTrailer )</syntaxhighlight>
    945 bytes (105 words) - 15:46, 13 October 2014
  • This example create a vehicle attached to window, then detach and destroy only window local vehicle = createVehicle(411,0,0,3)
    1 KB (145 words) - 21:38, 3 May 2021
  • Checks to see if a vehicle has contact with the ground. bool isVehicleOnGround ( vehicle theVehicle )
    1 KB (138 words) - 21:15, 31 January 2022
  • The vehicle class represents vehicles in the GTA world. Vehicles can be occupied and co The element type of this class is '''"vehicle"'''.
    3 KB (384 words) - 06:57, 1 January 2022
  • This function is used to retrieve a vehicle's turning velocity for each axis. float float float getVehicleTurnVelocity ( vehicle theVehicle )
    1 KB (141 words) - 22:56, 29 April 2024
  • This function gets the [[vehicle]] that the player is currently in, if any. <syntaxhighlight lang="lua">vehicle getPlayerOccupiedVehicle ( player thePlayer )</syntaxhighlight>
    1 KB (127 words) - 16:13, 13 February 2015
  • This event is triggered when a vehicle starts to drown in water. This event is even triggered when vehicles merely The source of this event is the [[vehicle]] that is drowning.
    724 bytes (95 words) - 13:03, 4 October 2016
  • This function is used to get the vehicle being towed by another. <syntaxhighlight lang="lua">vehicle getVehicleTowedByVehicle ( vehicle theVehicle )</syntaxhighlight>
    1 KB (118 words) - 23:11, 17 December 2014
  • This function gets the position of a vehicle's turret, if it has one. Vehicles with turrets include firetrucks and tanks <syntaxhighlight lang="lua">float, float getVehicleTurretPosition ( vehicle turretVehicle )</syntaxhighlight>
    1 KB (196 words) - 23:35, 17 December 2014
  • This function sets the time delay (in milliseconds) the vehicle will remain wrecked before respawning. <syntaxhighlight lang="lua">bool setVehicleRespawnDelay ( vehicle theVehicle, int timeDelay )</syntaxhighlight>
    1 KB (143 words) - 23:20, 17 December 2014
  • This function sets the time delay (in milliseconds) the vehicle will remain at its position while empty. <syntaxhighlight lang="lua">bool setVehicleIdleRespawnDelay ( vehicle theVehicle, int timeDelay )</syntaxhighlight>
    1 KB (154 words) - 23:49, 17 December 2014
  • This function changes the paintjob on the specified vehicle. <br/> <syntaxhighlight lang="lua">bool setVehiclePaintjob ( vehicle theVehicle, int value )</syntaxhighlight>
    850 bytes (103 words) - 17:13, 15 April 2014
  • This function returns a [[vehicle]] engine speed. You will also need a function to [[getElementSpeed]]. <syntaxhighlight lang="lua">vehicle getVehicleRPM (vehicle)</syntaxhighlight>
    2 KB (136 words) - 22:22, 12 December 2020
  • ...nction gets the state of the helicopter blades collisions on the specified vehicle. bool getHeliBladeCollisionsEnabled ( vehicle theVehicle )
    1 KB (139 words) - 14:06, 31 December 2014
  • This function turns a vehicle's engine on or off. Note that the engine will always be turned on when some bool setVehicleEngineState ( vehicle theVehicle, bool engineState )
    2 KB (219 words) - 09:01, 4 November 2020
  • This function sets the dirt level on a vehicle. bool setVehicleDirtLevel ( vehicle theVehicle, int dirtLevel )
    734 bytes (96 words) - 21:36, 2 November 2023
  • This function will set the taxi light on in a taxi (vehicle ID's 420 and 438) bool setVehicleTaxiLightOn ( vehicle taxi, bool LightState )
    1 KB (143 words) - 02:25, 1 August 2018
  • {{New feature/item|3.0153|1.5.3|7405|This function gets the vehicle window state.}} bool isVehicleWindowOpen ( vehicle theVehicle, int window )
    1 KB (158 words) - 17:15, 22 October 2016
  • This will tell you if a vehicle is locked. <syntaxhighlight lang="lua">bool isVehicleLocked ( vehicle theVehicle )</syntaxhighlight>
    2 KB (189 words) - 07:51, 4 November 2020
  • ...spawnPosition]] or the position and rotation it was created on. To spawn a vehicle to a specific location just once, [[spawnVehicle]] can be used. bool respawnVehicle ( vehicle theVehicle )
    1 KB (154 words) - 06:33, 13 October 2023
  • This function gets the current paintjob on the specified vehicle. <br /> <syntaxhighlight lang="lua">int getVehiclePaintjob ( vehicle theVehicle )</syntaxhighlight>
    1 KB (139 words) - 04:22, 11 August 2019
  • This function get [[vehicle]] engine speed. You will also need a function to [[getElementSpeed]]. <syntaxhighlight lang="lua">vehicle getVehicleRPM (vehicle)</syntaxhighlight>
    2 KB (162 words) - 08:07, 29 March 2018
  • This function is used to get the vehicle that is towing another. <syntaxhighlight lang="lua">vehicle getVehicleTowingVehicle ( vehicle theVehicle )</syntaxhighlight>
    1,007 bytes (112 words) - 23:12, 17 December 2014
  • ...scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function, create an issue in [https:/ For more functions, check the [[Useful_Functions|useful functions page]].
    2 KB (269 words) - 21:33, 29 April 2024
  • This function sets the position of a vehicle's turret, if it has one. This can be used to influence the turret's rotatio <syntaxhighlight lang="lua">bool setVehicleTurretPosition ( vehicle turretVehicle, float positionX, float positionY )</syntaxhighlight>
    1 KB (170 words) - 23:23, 17 December 2014
  • This function returns whether the sirens are turned on for the specified vehicle. bool getVehicleSirensOn ( vehicle theVehicle )
    1 KB (153 words) - 09:44, 12 September 2018
  • {{OOP|This function is a static function underneath the Vehicle class.|[[Vehicle]].getAllOfType||}} -- Loop through the vehicle list
    1 KB (135 words) - 19:44, 1 September 2021
  • This function is used to check whether a vehicle's landing gear is down or not. Only planes can be used with this function. bool getVehicleLandingGearDown ( vehicle theVehicle )
    1 KB (159 words) - 06:24, 17 June 2023
  • ==Account functions== ==ACL functions==
    3 KB (285 words) - 12:38, 16 January 2022
  • This function is used to retrieve the text on the number plate of a specified vehicle. string getVehiclePlateText ( vehicle theVehicle )
    2 KB (217 words) - 20:33, 13 October 2014
  • This event gets fired when a [[ped]] or [[player]] gets out of a vehicle. *'''thePed:''' the [[player]] or [[ped]] element that exited the vehicle
    1 KB (149 words) - 14:24, 31 August 2023
  • ...vehicle's door is open. Doors include the boot/trunk and the bonnet of the vehicle. bool setVehicleDoorOpenRatio ( vehicle theVehicle, int door, float ratio [, int time = 0 ] )
    1 KB (179 words) - 20:00, 25 July 2018
  • float getVehicleDoorOpenRatio ( vehicle theVehicle, int door ) {{OOP||[[vehicle]]:getDoorOpenRatio||setVehicleDoorOpenRatio}}
    1 KB (144 words) - 23:45, 17 December 2014
  • This function returns the maximum number of passengers that a specified vehicle can hold. Only passenger seats are counted, the driver seat is excluded. <syntaxhighlight lang="lua">int getVehicleMaxPassengers ( vehicle theVehicle / int modelID )</syntaxhighlight>
    1 KB (179 words) - 17:11, 6 March 2023
  • This function returns the current upgrade id on the specified vehicle's 'upgrade slot' <syntaxhighlight lang="lua">int getVehicleUpgradeOnSlot ( vehicle theVehicle, int slot )</syntaxhighlight>
    1 KB (151 words) - 08:04, 5 August 2021
  • <syntaxhighlight lang="lua">float getTrainPosition ( vehicle train )</syntaxhighlight> {{OOP||[[vehicle]]:getTrainPosition|trainPosition|setTrainPosition}}
    1 KB (172 words) - 17:13, 22 October 2016
  • .../item|1.5.9|1.5.8|20740|This event is fired when a [[ped]] has entered a [[vehicle]].}} vehicle theVehicle, int seat
    1 KB (133 words) - 21:01, 23 September 2021
  • ...ats than the current model, any excess passengers will be removed from the vehicle. bool setVehicleModel ( vehicle theVehicle, int model )
    2 KB (215 words) - 12:51, 3 July 2014
  • This function returns the current state of the specified light on the vehicle. <syntaxhighlight lang="lua">int getVehicleLightState ( vehicle theVehicle, int light )</syntaxhighlight>
    845 bytes (100 words) - 21:56, 15 June 2018
  • This function changes the state of the sirens on the specified vehicle. bool setVehicleSirensOn ( vehicle theVehicle , bool sirensOn )
    1 KB (165 words) - 23:17, 17 December 2014
  • This example create a vehicle attached to window, which will be destroyed after 2 seconds with window local vehicle = createVehicle(411,0,0,3)
    1 KB (135 words) - 21:37, 3 May 2021
  • This function retrieves the type of a vehicle (such as if it is a car or a boat). string getVehicleType ( vehicle theVehicle )
    2 KB (180 words) - 17:14, 4 April 2016
  • This example prints a message in the chat box when the vehicle that you are in gets destroyed. if getElementType(source) == "vehicle" and getPedOccupiedVehicle(getLocalPlayer()) == source then
    951 bytes (127 words) - 15:14, 9 November 2018
  • ...doors undamageable, so they won't fall off when they're hit. Note that the vehicle '''has''' to be locked using [[setVehicleLocked]] for this setting to have bool setVehicleDoorsUndamageable ( vehicle theVehicle, bool state )
    1 KB (176 words) - 23:30, 17 December 2014
  • ...color to a random value if the sound beats and the localPlayer is inside a vehicle ...if getPedOccupiedVehicle(localPlayer) then -- if the player is inside a vehicle
    2 KB (207 words) - 14:13, 28 August 2023
  • This event is triggered when a [[ped]] or [[player]] starts exiting a vehicle. Once the exiting animation completes, [[onClientVehicleExit]] is triggered *'''thePed:''' the ped who started exiting the vehicle.
    1 KB (145 words) - 13:03, 29 November 2020
  • Эта функция получает обороты двигателя [[vehicle|машины]]. Так же нужна функция [[RU/getElementSpeed| <syntaxhighlight lang="lua">number getVehicleRPM (vehicle)</syntaxhighlight>
    2 KB (130 words) - 21:54, 12 December 2020
  • ...doors to be locked or unlocked. Locking a vehicle restricts access to the vehicle. ...pening the vehicle doors. It means that a player can still access a locked vehicle if there's an opened door. Also, vehicles that doesn't have doors can still
    2 KB (250 words) - 08:31, 4 November 2020
  • ...player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlight ...t this function is in on the main function list page, e.g. Server, Player, Vehicle etc -->
    1 KB (209 words) - 16:18, 30 January 2009
  • This event gets fired when a [[player]] or [[ped]] enters a vehicle. *'''thePed:''' the [[player]] or [[ped]] that entered the vehicle
    2 KB (181 words) - 12:55, 29 November 2020
  • ...9|1.5.8|20797|This function sets the position of the dummy for the given [[vehicle]].}} bool setVehicleDummyPosition ( vehicle theVehicle, string dummy, float x, float y, float z )
    839 bytes (99 words) - 20:44, 23 September 2021
  • ...works for drivers and passengers. Note that this removes the ped from the vehicle and puts him in the exact position where the command was initiated. ...Set the variable to nil to execute this function|[[ped]]:removeFromVehicle|vehicle}}
    1 KB (205 words) - 15:42, 3 April 2018
  • This function sets the position (and rotation) the vehicle will respawn to. <syntaxhighlight lang="lua">bool setVehicleRespawnPosition ( vehicle theVehicle, float x, float y, float z [, float rx, float ry, float rz ] )</
    1 KB (190 words) - 19:58, 25 July 2018
  • ...is used to find out the current state of the override-lights setting of a vehicle. <syntaxhighlight lang="lua">int getVehicleOverrideLights ( vehicle theVehicle )</syntaxhighlight>
    1 KB (139 words) - 16:10, 13 October 2014
  • This function gets the rotation of a vehicle along the X, Y, and Z axes in degrees. <syntaxhighlight lang="lua">float float float getVehicleRotation ( vehicle theVehicle )</syntaxhighlight>
    1 KB (159 words) - 08:27, 7 September 2019
  • <syntaxhighlight lang="lua">int getVehicleAdjustableProperty ( vehicle theVehicle )</syntaxhighlight> *'''theVehicle:''' The vehicle you want to get the adjustable property of.
    1 KB (172 words) - 13:43, 10 May 2018
  • This event is triggered when a [[ped]] or [[player]] starts entering a vehicle. Once the entering animation completes, [[onClientVehicleEnter]] is trigger *'''thePed:''' the ped that just started entering a vehicle.
    1 KB (188 words) - 12:58, 29 November 2020
  • This function gets the seat that a specific ped is sitting in in a vehicle. [[File:vehicle seat ids.png|200px|thumb|right|Vehicle seat ids]]
    1 KB (158 words) - 21:00, 20 June 2018
  • ...ion changes the state of the helicopter blades collisions on the specified vehicle. bool setHeliBladeCollisionsEnabled ( vehicle theVehicle, bool collisions )
    1 KB (166 words) - 11:29, 31 December 2014
  • This function sets the state of the light on the vehicle. <syntaxhighlight lang="lua">bool setVehicleLightState ( vehicle theVehicle, int light, int state )</syntaxhighlight>
    1 KB (142 words) - 22:05, 6 April 2018
  • ''Note: does not include small ID lists related to specific functions or IDs created by MTA'' *[[Vehicle Colors]]
    1 KB (183 words) - 07:20, 1 January 2022
  • iprint(getElementsByType("vehicle")) ...D40160, elem:vehicle[Banshee]2ED40790, elem:vehicle[Banshee]2ED40628, elem:vehicle[Sparrow]2ED3FFF8 }
    4 KB (512 words) - 16:55, 18 February 2018
  • local vehicle = createVehicle (411, 0, 0, 3) setTimer (setElementDimension, 1000, 1, vehicle, 10)
    1 KB (115 words) - 21:00, 23 September 2021
  • local vehicle = createVehicle (411, 0, 0, 3) setTimer (setElementInterior, 1000, 1, vehicle, 10)
    1 KB (115 words) - 21:05, 23 September 2021
  • This function is used to warp or force a player into a vehicle. There are no animations involved when this happens. bool warpPlayerIntoVehicle ( player thePlayer, vehicle theVehicle, [ int seat=0 ] )
    1 KB (174 words) - 17:42, 16 October 2016
  • This function will get the taxi light state of a taxi (vehicle IDs 420 and 438) bool isVehicleTaxiLightOn ( vehicle taxi )
    1 KB (165 words) - 16:38, 3 August 2020
  • This function returns the current state of a specifed panel on the vehicle. A vehicle can have up to 7 panels. int getVehiclePanelState ( vehicle theVehicle, int panel )
    1 KB (171 words) - 00:25, 7 April 2018
  • ...th for the specified [[element]]. This can be a [[player]], a [[ped]], a [[vehicle]], or an [[object]]. *'''theElement:''' The [[player]] or [[vehicle]] whose health you want to check.
    1 KB (169 words) - 20:16, 11 August 2018
  • ....5.8|20797|This function returns the position of the dummy for the given [[vehicle]].}} float, float, float getVehicleDummyPosition ( vehicle theVehicle, string dummy )
    1 KB (165 words) - 20:43, 23 September 2021
  • This function returns the current state of the specifed door on the vehicle. <syntaxhighlight lang="lua">int getVehicleDoorState ( vehicle theVehicle, int door )</syntaxhighlight>
    1 KB (178 words) - 19:47, 14 July 2017
  • Sets the angular velocity of a vehicle. Basically applies a spin to it. bool setVehicleTurnVelocity ( vehicle theVehicle, float rx, float ry, float rz )
    1 KB (145 words) - 15:58, 8 November 2018
  • This function returns the color of the specified vehicle. A vehicle can have up to four colors. int, int, int, int, int, int, int, int, int, int, int, int getVehicleColor ( vehicle theVehicle, bool bRGB )
    2 KB (225 words) - 08:21, 4 November 2020
  • This function is used to warp or force a ped into a vehicle. There are no animations involved when this happens. [[File:vehicle seat ids.png|200px|thumb|right|Vehicle seat ids]]
    2 KB (220 words) - 19:02, 30 January 2022
View (previous 100 | ) (20 | 50 | 100 | 250 | 500)