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
  • ...patible upgrades (or all for a specified slot, optionally) for a specified vehicle. table getVehicleCompatibleUpgrades ( vehicle theVehicle [, int slot ] )
    1 KB (152 words) - 09:10, 4 November 2020
  • ...lable as native functions. To request a function or event, use [[Requested Functions and Events]] or https://bugs.mtasa.com. ...that provide new functionality, such as utility functions. These scripting functions are non-native and require the module to be loaded in order to work.
    3 KB (332 words) - 16:18, 11 April 2021
  • ...rks for drivers and passengers. Note that this removes the player from the vehicle and puts him in the exact position where the command was initiated. *'''thePlayer:''' The player you wish to remove from a vehicle
    2 KB (212 words) - 08:13, 4 November 2020
  • ...ble state' of a vehicle's fuel tank, which toggles the ability to blow the vehicle up by shooting the tank. This function will have no effect on vehicles with bool setVehicleFuelTankExplodable ( vehicle theVehicle, bool explodable )
    2 KB (278 words) - 14:11, 13 June 2021
  • bool setVehicleRotorSpeed ( vehicle theVehicle, float speed ) {{OOP||[[vehicle]]:setVehicleRotorSpeed|vehicleRotorSpeed|getVehicleRotorSpeed}}
    2 KB (196 words) - 14:50, 23 December 2023
  • This function rotates a vehicle around a single point. <syntaxhighlight lang="lua">bool setVehicleRotation ( vehicle theVehicle, rx, ry, rz )</syntaxhighlight>
    827 bytes (96 words) - 16:18, 13 February 2015
  • This function checks if a [[Element/Vehicle|train]] is a chain engine (moves the rest of the chain's carriages) or not. bool isTrainChainEngine ( vehicle theTrain )
    1 KB (163 words) - 23:13, 2 August 2016
  • ...lesComboBox = guiCreateComboBox ( 400, 100, 200, 5 * #getElementsByType ( "vehicle" ), "", false ) -- We create a combo box. for index, vehicle in ipairs ( getElementsByType ( "vehicle" ) ) do -- We loop through all vehicles.
    1 KB (144 words) - 20:38, 7 November 2018
  • ...scripting functions that have been implemented and are available as native functions. To request a function, create an issue in [https://github.com/multitheftau ...that provide new functionality, such as utility functions. These scripting functions are non-native and require the module to be loaded in order to work.
    3 KB (358 words) - 12:59, 30 April 2024
  • The source of this event is the player vehicle. ===Client vehicle events===
    952 bytes (113 words) - 02:55, 20 January 2015
  • Эта функция проверяет если [[Element/Vehicle|поезд]] имеет цепь двигателей (перемещени bool isTrainChainEngine ( vehicle theTrain )
    1 KB (57 words) - 09:45, 10 August 2014
  • This function allows you to determine whether a vehicle is blown or still intact. <syntaxhighlight lang="lua">bool isVehicleBlown ( vehicle theVehicle )</syntaxhighlight>
    1 KB (179 words) - 22:33, 18 December 2014
  • float getVehicleRotorSpeed ( vehicle theVehicle ) {{OOP||[[vehicle]]:getVehicleRotorSpeed|vehicleRotorSpeed|setVehicleRotorSpeed}}
    2 KB (189 words) - 11:16, 21 December 2023
  • This function gets the seat that a specific player is sitting in in a vehicle. *'''thePlayer''': The [[player]] whose vehicle seat you're looking up.
    1 KB (128 words) - 16:13, 13 February 2015
  • {{New feature/item|3.0153|1.5.3|7405|This function sets the vehicle window state.}} bool setVehicleWindowOpen ( vehicle theVehicle, int window, bool open )
    2 KB (224 words) - 17:14, 22 October 2016
  • This function checks if a player is in a vehicle. Returns ''true'' if the player is inside a vehicle, ''false'' if he isn't or an invalid player was passed.
    2 KB (204 words) - 11:48, 26 June 2014
  • Az osztály elemtípusa a '''"vehicle"'''. <vehicle model="" posX="" posY="" posZ="" rotX="" rotY="" rotZ="" color="" upgrades=
    3 KB (496 words) - 20:31, 14 April 2021
  • This function changes the light overriding setting on a vehicle. <syntaxhighlight lang="lua">bool setVehicleOverrideLights ( vehicle theVehicle, int value )</syntaxhighlight>
    3 KB (292 words) - 19:19, 4 June 2017
  • To request a function or event, use [[Requested Functions and Events]]. == Vehicle events ==
    799 bytes (96 words) - 05:37, 22 March 2016
  • Aby zażądać funkcji lub zdarzenia, użyj [[Requested Functions and Events]] or https://bugs.mtasa.com. ==Account functions==
    3 KB (344 words) - 11:15, 16 December 2020
  • <syntaxhighlight lang="lua">int getTrainTrack ( vehicle train )</syntaxhighlight> {{OOP||[[vehicle]]:getTrack|track|setTrainTrack}}
    873 bytes (97 words) - 19:36, 19 May 2019
  • This event is called when a vehicle weapon hits an element or the world. *'''weaponType''': The type of vehicle weapon. (See the list below)
    2 KB (233 words) - 20:42, 5 April 2020
  • This function adds an upgrade to a [[vehicle]], e.g. nitrous, hydraulics. <syntaxhighlight lang="lua">bool addVehicleUpgrade ( vehicle theVehicle, string/int upgrade )</syntaxhighlight>
    3 KB (340 words) - 21:24, 19 March 2021
  • This function detects the element a ped is standing on. This can be a vehicle or an object. Returns an [[object]] or a [[vehicle]] if the ped is standing on one, ''false'' if he is touching none or an inv
    1 KB (155 words) - 15:15, 5 November 2022
  • <syntaxhighlight lang="lua">bool setTrainPosition ( vehicle train, float position )</syntaxhighlight> {{OOP||[[vehicle]]:setTrainPosition|trainPosition|getTrainPosition}}
    1 KB (203 words) - 18:37, 16 March 2019
  • <syntaxhighlight lang="lua">int getVehiclePaintjob ( vehicle theVehicle )</syntaxhighlight> {{PL/OOP||[[vehicle]]:getPaintjob|paintjob|setVehiclePaintjob}}
    1 KB (136 words) - 11:38, 11 October 2016
  • ...and the varying types of a motor bike. For the default variant list see: [[Vehicle variants]]. <syntaxhighlight lang="lua">bool setVehicleVariant ( vehicle theVehicle [, int variant1, int variant2 ] )</syntaxhighlight>
    3 KB (347 words) - 17:05, 23 September 2021
  • This function retrieves the model ID of a vehicle as an [[int]]eger value from its name. {{OOP|This function is a static function underneath the Vehicle class.|[[Vehicle]].getModelFromName}}
    2 KB (318 words) - 19:53, 26 May 2017
  • local vehicle = createVehicle(411, 0, 0, 3) setVehicleDamageProof(vehicle, true)
    9 KB (328 words) - 14:34, 3 February 2021
  • ** "vehicle": whilst in vehicle ...can go to when the vehicle is moving at a high speed (must be higher than "vehicle")
    1 KB (143 words) - 19:41, 14 January 2022
  • Sets the gravity vector of a vehicle. The vehicle will fall in this direction, and the camera of any occupants will also be r <syntaxhighlight lang="lua">bool setVehicleGravity ( vehicle theVehicle, float x, float y, float z )</syntaxhighlight>
    1 KB (207 words) - 11:29, 12 July 2017
  • This example cancels when a hunterPlayer tries to enter a vehicle and outputs to the world what the player tried to do. ..."lua">-- call 'stopVehicleEntry' whenever hunterPlayer is about to enter a vehicle:
    942 bytes (117 words) - 12:50, 28 July 2013
  • This function detects the element a player is standing on. This can be a vehicle or an object. Note that the server is unable to retrieve contact elements Returns an [[object]] or a [[vehicle]] if the player is standing on one, ''false'' if he is touching none or is
    1 KB (155 words) - 16:30, 13 February 2015
  • This function enables or disables the weapons on a vehicle <syntaxhighlight lang="lua">bool setVehicleGunsEnabled ( vehicle theVehicle, bool gunsEnabled )</syntaxhighlight>
    2 KB (210 words) - 00:15, 10 September 2016
  • ...58|1.5.7|19626|This function is used to find out whether the lights of the vehicle are on.}} bool areVehicleLightsOn ( vehicle theVehicle )
    2 KB (239 words) - 13:48, 25 October 2020
  • This function detaches an already attached trailer from a vehicle. ...highlight lang="lua">bool detachTrailerFromVehicle ( vehicle theVehicle [, vehicle theTrailer = nil ] )</syntaxhighlight>
    3 KB (312 words) - 04:20, 11 August 2019
  • bool setVehicleLandingGearDown ( vehicle theVehicle, bool gearState ) *'''theVehicle:''' The vehicle of which you wish to set the landing gear state.
    1 KB (156 words) - 17:34, 7 April 2012
  • ===Client event functions===
    1 KB (166 words) - 16:46, 19 June 2021
  • <syntaxhighlight lang="lua">float getTrainSpeed ( vehicle train )</syntaxhighlight> {{OOP||[[vehicle]]:getTrainSpeed|trainSpeed|setTrainSpeed}}
    2 KB (213 words) - 10:33, 5 November 2023
  • To request a function or event, use [[Requested Functions and Events]]. ==Vehicle events==
    969 bytes (118 words) - 14:21, 10 October 2018
  • This function allows you to change the state of one of the six panels vehicle's can have. When executed on the server-side resources, the damage will be <syntaxhighlight lang="lua">bool setVehiclePanelState ( vehicle theVehicle, int panelID, int state )</syntaxhighlight>
    2 KB (264 words) - 22:29, 6 April 2018
  • ...'s used with on-foot players: use [[getVehicleRotation]] on the occupied [[vehicle]] if the player is in one. ...ning the player's rotation, or ''false'' if an invalid player (or one in a vehicle) was passed.
    1 KB (189 words) - 16:13, 13 February 2015
  • <syntaxhighlight lang="lua">bool setTrainTrack ( vehicle train, int track )</syntaxhighlight> {{OOP||[[vehicle]]:setTrack|track|getTrainTrack}}
    1 KB (192 words) - 19:38, 19 May 2019
  • <syntaxhighlight lang="lua">bool setTrainDirection ( vehicle train, bool clockwise )</syntaxhighlight> {{OOP||[[vehicle]]:setDirection|direction|getTrainDirection}}
    975 bytes (115 words) - 22:26, 18 December 2014
  • ** "vehicle": whilst in vehicle ...can go to when the vehicle is moving at a high speed (must be higher than "vehicle")
    1 KB (159 words) - 14:55, 13 August 2018
  • This function retrieves the ID of a vehicle as an integer value from its name. *'''name:''' A [[string]] containing the name of the vehicle.
    2 KB (290 words) - 11:29, 26 June 2014
  • *'''modelId:''' The [[Vehicle_IDs|vehicle model]] you wish to set the handling of. *'''property:''' The property you wish to set the handling of the vehicle to, or ''nil'' if you want to reset the all the handling properties.
    3 KB (330 words) - 18:58, 30 January 2022
  • vehicle killer *'''killer:''' the vehicle (heli) responsible for causing the death.
    1 KB (150 words) - 22:24, 24 June 2019
  • Gets the name of a vehicle by its model ID. {{OOP|This function is a static function underneath the Vehicle class.|[[Vehicle]].getNameFromModel}}
    2 KB (259 words) - 02:36, 19 April 2021
  • This function returns a random [[vehicle]] between every vehicle created. <syntaxhighlight lang="lua">vehicle getRandomVehicle( )</syntaxhighlight>
    3 KB (333 words) - 09:54, 16 June 2016
  • ...amera'' - yes, the camera that the user can control whilst on foot or in a vehicle. The higher the field of view angle, the more you will be able to see to yo ...oes not affect the FOV for the following camera modes: 1) Player aiming 2) Vehicle front bumper camera 3) Fixed camera}}
    2 KB (229 words) - 15:27, 26 August 2018
  • ...amera'' - yes, the camera that the user can control whilst on foot or in a vehicle. The higher the field of view angle, the more you will be able to see to yo ...oes not affect the FOV for the following camera modes: 1) Player aiming 2) Vehicle front bumper camera 3) Fixed camera}}
    2 KB (230 words) - 09:23, 10 October 2020
  • This function removes an already existing upgrade from the specified vehicle, eg: nos, hydraulics. Defined in San Andreas\data\maps\veh_mods\veh_mods.id <syntaxhighlight lang="lua">bool removeVehicleUpgrade ( vehicle theVehicle, int upgrade )</syntaxhighlight>
    2 KB (264 words) - 08:03, 5 August 2021
  • ...can use vehicle weapons by disabling or enabling the primary and secondary vehicle fire keys. The command handler is trigged with 'toggleweapons' --Check to see if the player can use primary/secondary vehicle fire controls
    2 KB (284 words) - 19:54, 1 April 2013
  • This function sets the state of the specified door on a vehicle. <syntaxhighlight lang="lua">bool setVehicleDoorState ( vehicle theVehicle, int door, int state )</syntaxhighlight>
    2 KB (249 words) - 17:38, 4 October 2022
  • ...player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlight ...n style="color:#eb3f00;text-shadow:0.05em 0.05em 0.2em #00000099;">General Functions</span>==
    2 KB (225 words) - 15:14, 12 March 2023
  • vehicle killer *'''killer:''' the vehicle (heli) responsible for causing the death.
    1 KB (150 words) - 03:27, 20 January 2015
  • * [[Element/Vehicle|Vehicles]] This example attaches a samsite on the player's vehicle.
    1 KB (157 words) - 15:52, 1 October 2021
  • ...ement. This can be a player/ped skin, a pickup model, an object model or a vehicle model. * For vehicles: The [[Vehicle IDs|vehicle ID]] of the vehicle.
    2 KB (255 words) - 17:34, 6 June 2022
  • To request a function or event, use [[Requested Functions and Events]]. ==Vehicle events==
    1 KB (139 words) - 05:35, 22 March 2016
  • float getHelicopterRotorSpeed ( vehicle heli ) {{OOP||[[vehicle]]:getHelicopterRotorSpeed|helicopterRotorSpeed|setHelicopterRotorSpeed}}
    1 KB (165 words) - 21:40, 26 June 2016
  • ...odes. This indicates at what distance the camera will follow the player or vehicle. {{Deprecated items|3.0159|1.5.8|Returns an [[int]] indicating the current vehicle camera view mode. Their meanings can be seen below.|20851}}
    1 KB (147 words) - 21:41, 23 September 2021
  • ....5.8|20726|This function returns the current wheel friction state of the [[vehicle]].}} int getVehicleWheelFrictionState ( vehicle theVehicle, int wheel )
    2 KB (177 words) - 20:39, 23 September 2021
  • This event is triggered when a vehicle is damaged. The [[event system#Event source|source]] of this event is the [[vehicle]] that got damaged.
    3 KB (382 words) - 13:51, 28 November 2019
  • Il tipo di elemento di questa classe è '''"vehicle"'''. <vehicle model="" posX="" posY="" posZ="" rotX="" rotY="" rotZ="" color="" upgrades=
    2 KB (204 words) - 20:31, 14 April 2021
  • bool getHeliBladeCollisionsEnabled ( vehicle theVehicle ) {{New feature/item|3.0141|1.4.0|6987|{{RU/OOP||[[vehicle]]:areHeliBladeCollisionsEnabled|heliBladeCollisionsEnabled|setHeliBladeColl
    2 KB (79 words) - 10:51, 16 April 2017
  • -- if he is in a vehicle -- store the vehicle element
    1 KB (175 words) - 16:33, 13 February 2015
  • {{Added feature/item|1.5.9|1.5.8|20740|This function makes a [[ped]] exit a [[vehicle]], similar to the enter_exit control state.}} *'''thePed:''' The [[player]] or [[ped]] to exit the vehicle.
    1 KB (183 words) - 17:27, 2 January 2022
  • To request a function or event, use [[Requested Functions and Events]]. ==Vehicle events==
    1 KB (161 words) - 11:03, 11 October 2018
  • ...explosion is from a [[vehicle]] the source is the [[player]] who syncs the vehicle. ===Client event functions===
    1 KB (172 words) - 11:43, 11 January 2024
  • Collision data can also be embedded in DFF files. At the moment, vehicle collision replacement works with DFF embedded collisions only. ==Related scripting functions==
    523 bytes (82 words) - 21:37, 14 April 2021
  • <syntaxhighlight lang="lua">bool getTrainDirection ( vehicle train )</syntaxhighlight> {{OOP||[[vehicle]]:getDirection|direction|setTrainDirection}}
    2 KB (203 words) - 12:44, 6 September 2015
  • This function returns the current states of all the wheels on the vehicle. <syntaxhighlight lang="lua">int, int, int, int getVehicleWheelStates ( vehicle theVehicle )</syntaxhighlight>
    3 KB (404 words) - 23:03, 17 December 2014
  • Diese Funktion sucht alle Fahrzuge mit einer Vehicle-ID auf der Map. *'''model''': Die Vehicle-ID des Fahrzeugs, siehe [[Vehicle_IDs]].
    987 bytes (117 words) - 12:04, 24 August 2012
  • float getHelicopterRotorSpeed ( vehicle heli ) {{OOP||[[vehicle]]:getHelicopterRotorSpeed|helicopterRotorSpeed|setHelicopterRotorSpeed}}
    2 KB (154 words) - 20:09, 22 April 2017
  • The source of this event is the vehicle who shot the water cannon. ...layerName(player).." is hit by the cannon of "..getPlayerName(driver).."'s vehicle.")
    1 KB (178 words) - 01:57, 7 April 2018
  • This function allows you to set the camera's view mode if you are inside a [[vehicle]]. This indicates at what distance the camera will follow the player. This example sets the camera to bumper view when the local player enters any vehicle.
    779 bytes (97 words) - 15:31, 26 August 2018
  • This example blows up any vehicle a player targets (aims at). ...( getElementType ( target ) == "vehicle" ) then -- and the target is a vehicle
    1 KB (169 words) - 11:02, 26 June 2014
  • Gets the name of a vehicle by its model id. *'''id:''' This is a vehicle id. See [[vehicle]] to see what values will return names (true).
    2 KB (242 words) - 11:31, 26 June 2014
  • ...cle a player is in. This allows carrying over of the current state of the vehicle, including mods, for example. ...occupiedVehicle = getPedOccupiedVehicle ( thePlayer ) -- get the player's vehicle
    2 KB (317 words) - 03:33, 1 January 2015
  • ...ing a vehicle as passenger after the driver has entered impossible, as the vehicle would appear to vanish to any on foot players. setElementDimension ( theVehicle, 1 ) -- set his vehicle's dimension to 1 as well
    2 KB (237 words) - 13:54, 6 August 2016
  • ...given element. This allows you to change the model of a player (or ped), a vehicle or an object. ** For vehicles: The [[Vehicle IDs|vehicle ID]] of the vehicle being changed.
    3 KB (359 words) - 17:36, 6 June 2022
  • bool setHelicopterRotorSpeed ( vehicle heli, float speed ) {{OOP||[[vehicle]]:setHelicopterRotorSpeed|helicopterRotorSpeed|getHelicopterRotorSpeed}}
    1 KB (163 words) - 21:13, 26 June 2016
  • ...when they enter a vehicle, and set back to dimension 0 when they exit the vehicle. setElementDimension ( theVehicle, 1 ) -- set his vehicle's dimension to 1 as well
    2 KB (249 words) - 21:24, 8 December 2018
  • ...when they enter a vehicle, and set back to dimension 0 when they exit the vehicle. setElementDimension ( theVehicle, 1 ) -- set his vehicle's dimension to 1 as well
    2 KB (249 words) - 21:24, 8 December 2018
  • ...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 -->
    2 KB (337 words) - 21:25, 3 May 2021
  • ...ded feature/item|1.5.9|1.5.8|20740|This function makes a [[ped]] enter a [[vehicle]], similar to the enter_exit control state.}} * If a vehicle is not specified:
    4 KB (556 words) - 19:22, 30 September 2021
  • '''Example 1:''' This example attaches a marker to a vehicle, and detaches it when it blows up: -- attach the marker above the vehicle
    2 KB (245 words) - 13:49, 6 August 2016
  • ...player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlight {{AR/Player functions}}
    2 KB (117 words) - 14:47, 24 March 2016
  • This functions checks whether or not 3DImage element is attached to another element. ...player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlight
    2 KB (237 words) - 10:07, 17 January 2023
  • This function sets the state of wheels on the vehicle. <syntaxhighlight lang="lua">bool setVehicleWheelStates ( vehicle theVehicle, int frontLeft, [ int rearLeft = -1, int frontRight = -1, int re
    4 KB (458 words) - 20:54, 9 September 2019
  • {{Note|Enabling a players collisions when they're inside a vehicle will cause bugs.}} local vehicles = getElementsByType("vehicle")
    2 KB (214 words) - 16:27, 20 January 2020
  • <syntaxhighlight lang="lua">bool setTrainSpeed ( vehicle train, float speed )</syntaxhighlight> {{OOP||[[vehicle]]:setTrainSpeed|trainSpeed|getTrainSpeed}}
    1 KB (178 words) - 10:33, 5 November 2023
  • *[[Vehicle]] local playerVehicle = getPedOccupiedVehicle(localPlayer) -- Get the players vehicle
    2 KB (208 words) - 21:31, 7 October 2022
  • ...rını içerir. Bir event veya fonksiyon talebinde bulunmak için, [[Requested Functions and Events]] sayfasını kullanın. {{Camera functions}}
    3 KB (353 words) - 16:18, 11 April 2021
  • ===[[MTA:Eir/classes/Vehicle|Vehicle]]=== *[[MTA:Eir/classes/Vehicle/setRotation|setRotation]]
    14 KB (1,643 words) - 12:16, 1 February 2014
  • Visszatérési érétke egy [[object|objekt]] vagy egy [[vehicle|jármű]], ha a ped rajta áll valamelyiken, ''false'', ha nem érint semmi if elementStandingOn and getElementType ( elementStandingOn ) == "vehicle" then
    1 KB (191 words) - 13:28, 7 October 2018
  • Fonksiyon veya event ile ilgili bir şey için [[Requested Functions and Events|İstenmiş Fonksiyonlar ve Eventler]] sayfasını kullanın. == Vehicle(Araç) eventleri ==
    1 KB (153 words) - 17:36, 15 November 2018
  • * [[Vehicle]]s. This example lets players jump their vehicle into the air (if they are the driver).
    3 KB (370 words) - 04:28, 30 April 2019
  • ...tor]] and [[Matrix]]. This page contains general information about the OOP functions and provides useful links. ...will prefer to stick to what they know - procedural programming. In fact, functions are still available even when OOP is enabled. Enabling OOP is as simple as
    2 KB (280 words) - 05:47, 6 November 2023
  • ...use this function to spawn a [[player]]. It will cause problems with other functions like [[warpPedIntoVehicle]]. <br> ...arped to is in a vehicle with a free passenger seat, it will warp into the vehicle.
    5 KB (579 words) - 16:20, 17 April 2016
  • function addHelmetOnEnter ( vehicle, seat, jacked ) if ( getVehicleID ( vehicle ) == 522 ) then -- if its a nrg
    2 KB (227 words) - 09:09, 4 November 2020
  • ...odes. This indicates at what distance the camera will follow the player or vehicle. This example sets the camera to bumper view when the local player enters any vehicle.
    1 KB (124 words) - 21:09, 23 September 2021
  • ...player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlight {{Server functions}}
    2 KB (218 words) - 14:46, 16 December 2014
  • ...tar uma função ou um evento que ainda não existe, use a página [[Requested Functions and Events|Funções e Eventos solicitados]] (ainda em inglês) ou http://b == Vehicle (Veículo)==
    1 KB (147 words) - 23:15, 27 September 2017
  • This event is triggered when an element (like a player or vehicle) leaves a collision shape. ===Client event functions===
    1 KB (118 words) - 19:59, 21 July 2016
  • This event is triggered when an element (like a player or vehicle) enters a collision shape. ===Client event functions===
    1 KB (118 words) - 19:55, 21 July 2016
  • *'''attacker:''' the vehicle/ped/player who is breaking the object ===Client event functions===
    973 bytes (120 words) - 03:27, 20 January 2015
  • outputChatBox ( "Your vehicle's health: " .. vehicleHealth ) --نخرج كلام بالشات بدم ال {{Element functions}}
    1 KB (72 words) - 14:38, 7 November 2017
  • ...player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlight {{GUI functions}}
    2 KB (195 words) - 17:19, 21 November 2018
  • DGS = exports.dgs --get exported functions from dgs veh1 = createVehicle(411,0,0,3) -- Create a vehicle
    1 KB (118 words) - 08:10, 9 February 2020
  • * Threaded database access functions * Synced and controllable vehicle variants
    3 KB (300 words) - 07:47, 29 September 2014
  • ...player, vehicle vehicle', instead write something like 'player thePlayer, vehicle vehicleToGetInto'. This is less confusing and prevents the syntax highlight {{Player functions}}
    2 KB (211 words) - 14:12, 24 March 2016
  • ...ments by the console commands ''bind'' and ''unbind'' as well as scripting functions such as [[bindKey]], [[unbindKey]], [[toggleControl]] etc. * '''enter_exit''' Make the player enter a vehicle. Also used for alternative fighting styles.
    6 KB (790 words) - 22:27, 17 June 2023
  • This page aims to provide an overview of vehicle components. The list is currently incomplete. |style="background:#cfcfcf;"|Vehicle chassis
    6 KB (718 words) - 07:19, 1 January 2022
  • ...ancel player emitted sounds in this event, because when you cancel certain vehicle sounds, the game will try to play the same sound on the next frame.}} '''Example 1:''' This example will cancel every vehicle sound.
    2 KB (339 words) - 21:03, 5 April 2020
  • ...use this function to spawn a [[player]]. It will cause problems with other functions like [[warpPedIntoVehicle]]. Use [[spawnPlayer]] instead.}} ...arped to is in a vehicle with a free passenger seat, it will warp into the vehicle.
    5 KB (677 words) - 21:23, 8 December 2018
  • This event is triggered when a vehicle collides with an [[element]] or a world object. ...e vehicle by default (this event triggers when hitting lamp posts, but the vehicle isn't damaged by them automatically, for example). If you want to deal with
    4 KB (540 words) - 10:35, 30 January 2022
  • This function is used to change the handling data of a vehicle. *'''theVehicle:''' The vehicle you wish to set the handling of.
    8 KB (852 words) - 19:55, 5 January 2022
  • * '''vehicleType''': The vehicle type string (see list below). ===Vehicle type list===
    4 KB (412 words) - 22:49, 11 September 2017
  • ...Theft Auto. It mirrors the procedural [[Client_Scripting_Functions|client functions]]. For information on how to enable OOP in 1.4 please refer to [[Meta.xml]] ...e, or by calling the class. For example: ''Vehicle(...)'' is the same as ''Vehicle.create(...)''.
    2 KB (215 words) - 11:21, 9 April 2014
  • {{AR/Collision shape functions}} {{AR/Client_Clothes and body functions}}
    3 KB (174 words) - 16:12, 11 April 2021
  • This function will disable the use of the vehicle secondary-fire key for anyone in a Hydra, consequently removing the ability else -- if they entered another vehicle
    3 KB (351 words) - 08:43, 4 November 2020
  • ...tar uma função ou um evento que ainda não existe, use a página [[Requested Functions and Events|Funções e Eventos solicitados]] (ainda em inglês) ou https:// '''Procurando as funções client-side? Visite a página [[Client Scripting Functions|Funções de Scripting do Cliente]].'''
    3 KB (436 words) - 00:36, 3 January 2022
  • This event is triggered whenever the local player starts doing a vehicle stunt. ===Client event functions===
    1 KB (130 words) - 07:58, 16 September 2021
  • ...d then load and import each of those files using the appropriate scripting functions. To split a .col file into multiple files, you can use [http://www.steve-m. Collision data can also be embedded in DFF files. At the moment, vehicle collision replacement works with DFF embedded collisions only.
    1 KB (197 words) - 21:43, 14 April 2021
  • ...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 -->
    3 KB (285 words) - 10:20, 30 January 2022
  • ...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 -->
    2 KB (311 words) - 21:07, 7 November 2018
  • This event is triggered whenever the local player finishes a vehicle stunt. ===Client event functions===
    1 KB (147 words) - 08:00, 16 September 2021
  • *'''theElementToShow:''' A vehicle/ped/object element that can be demonstrated in object preview. ...le (dgs plugin)/ SOVElement (element Type) that '''works with the exported functions of object preview''' if succeed, ''false'' otherwise.
    2 KB (273 words) - 01:36, 12 January 2023
  • This example will make it rain when player or ped enters a vehicle, and stop once it leaves. {{World functions}}
    726 bytes (84 words) - 08:05, 16 September 2021
  • ...dated our Audio Library to the latest version to improve some of our sound functions specifically beat detection and prevent crashes caused by calling getSoundM ==== New Functions ====
    4 KB (511 words) - 16:07, 7 September 2018
  • ...every time GTA renders a new frame. It is required for the DirectX drawing functions, and also useful for other clientside operations that have to be applied re ...ittle bit laggy. If you want the camera to follow something (eg. player or vehicle) then use [[onClientPreRender]] instead.
    1 KB (197 words) - 11:06, 2 March 2014
  • ...arped to is in a vehicle with a free passenger seat, it will warp into the vehicle. -- Is the player we're warping to in a vehicle?
    5 KB (635 words) - 02:48, 9 December 2012
  • ==== New Functions ==== * Fixed vehicle upgrades
    3 KB (372 words) - 16:07, 7 September 2018
  • ...help us]] improve MTA - create a map, a gamemode, help document scripting functions, write example code, write tutorials or just play MTA and report the bugs y * Finish documentation for [[:Category:Incomplete|Incomplete functions]].
    8 KB (1,118 words) - 00:49, 27 May 2019
  • ...ck its frozen waiting for custom map objects to load status. It can be a [[vehicle]], [[ped]] or [[player]]. The next code snippet outputs a message when a vehicle respawns far away from players, above an [[object]].
    1 KB (183 words) - 22:14, 8 August 2018
  • ...th for the specified [[element]]. This can be a [[ped]], [[object]] or a [[vehicle]]. {{Note|In the case of the [[vehicle]] element, the following effects appear, depending on the health value:
    2 KB (295 words) - 15:41, 24 July 2023
  • ...maak MTA beter! - Maak een map, een gamemode, help door document scripting functions, schrijf example codes, maak tutorials of speel MTA en report de bugs. * [[Useful_Functions|Useful functions]]
    4 KB (590 words) - 16:50, 23 January 2022
  • ...help us]] improve MTA - create a map, a gamemode, help document scripting functions, write example code, write tutorials or just play MTA and report the bugs y * Finish documentation for [[:Category:Incomplete|Incomplete functions]].
    8 KB (1,130 words) - 20:31, 31 May 2022
  • {{:MTA:Eir/functions/setElementRenderMode/validProps}} This snippet disables mesh lighting and reflection for the player's vehicle if he executes the '''/unsetlight''' command.
    2 KB (193 words) - 19:13, 9 April 2014
  • *'''attacker''': A [[player]] [[element]] representing the attacker or [[vehicle]] [[element]] (when a ped falls of a bike). ===Client event functions===
    1 KB (165 words) - 10:32, 30 January 2022
  • ...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 -->
    2 KB (336 words) - 06:27, 16 January 2023
  • ...hiclesComboBox = guiCreateComboBox ( left, top, windowWidth,windowHeight, "Vehicle Names", false ) -- We create a combo box. for index, vehicle in ipairs ( getElementsByType ( "vehicle" ) ) do -- We loop through all vehicles.
    3 KB (423 words) - 08:09, 30 October 2023
  • O tipo de elemento desta classe é '''"vehicle"'''. <vehicle model="" posX="" posY="" posZ="" rotX="" rotY="" rotZ="" color="" upgrades=
    3 KB (430 words) - 21:40, 8 February 2020
  • ...ng a creation of a class - an element class, a database class, a player, a vehicle. Originally, everything was ''procedural'', you had to do things like: local vehicle = createVehicle(411, 0, 0, 3)
    9 KB (1,385 words) - 05:52, 6 November 2023
  • *'''killer''': A [[player]], [[ped]] or [[vehicle]] [[element]] representing the killer. ===Client event functions===
    1 KB (179 words) - 11:22, 27 June 2023
  • .... Players can not, by default, access these. You can use various scripting functions to move elements into these interiors. When you change the interior a playe ...e. You can also use this function on other elements, for example to make a vehicle or object appear in the interior.
    2 KB (241 words) - 21:36, 28 April 2020
  • ...t/Ped|пешехода]], модель [[RU/Element/Pickup|пикапа]], модель [[RU/Element/Vehicle|транспортного средства]] или модель [[RU/Elem ** для [[RU/Element/Vehicle|транспортных средств]]: [[RU/Vehicle IDs|ID модели транспортного средства]];
    3 KB (156 words) - 19:25, 6 June 2022
  • ...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 -->
    3 KB (388 words) - 14:16, 27 April 2020
View (previous 250 | ) (20 | 50 | 100 | 250 | 500)