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 (setElementInterior, 1000, 1, vehicle, 10)
    1 KB (115 words) - 21:05, 23 September 2021
  • local vehicle = createVehicle (411, 0, 0, 3) setTimer (setElementDimension, 1000, 1, vehicle, 10)
    1 KB (115 words) - 21:00, 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
  • ...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,146 words) - 20:22, 14 April 2018
  • *'''attacker:''' the vehicle/ped/player who is damaging the object. ===Client event functions===
    1 KB (185 words) - 15:20, 3 September 2020
  • The source of this event is the vehicle who shot the water cannon. ===Client event functions===
    1 KB (189 words) - 12:14, 8 February 2015
  • This functions checks whether or not an 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 (339 words) - 23:10, 27 September 2018
  • *'''killer''': A [[player]], [[ped]] or [[vehicle]] [[element]] representing the killer. ===Client event functions===
    2 KB (200 words) - 21:38, 14 November 2022
  • local vehicle = createVehicle(554,0,0,3) warpPedIntoVehicle(ped, vehicle)
    2 KB (191 words) - 01:30, 12 December 2023
  • '''Клиентские функции скриптинга можно найти [[RU/Client Scripting Functions|здесь]]'''. {{RU/Server account functions}}
    5 KB (241 words) - 11:18, 8 June 2022
  • *'''Target''' argument valid elements are: [[player]], [[ped]], [[vehicle]] and [[object]]. ...jectile to be synced for everybody creator must be the local player or his vehicle.
    4 KB (455 words) - 11:49, 16 November 2023
  • ...is must be "ped". After release '''1.5.8 r20716''' this function supports "vehicle" and "object" too.}} {{note|Vehicle unique features may be unsupported, see [https://github.com/multitheftauto/
    3 KB (445 words) - 20:02, 7 February 2024
  • *'''attacker''': A [[player]] [[element]] representing the attacker or [[vehicle]] [[element]] (when being run over or falling off a bike). ===Client event functions===
    1 KB (196 words) - 11:40, 2 May 2022
  • ...cree alguna función o un evento, visita el artículo oficial de [[Requested Functions and Events|Pedido de Funciones y Eventos]] o https://github.com/multithefta ...nes de cliente se pueden encontrar en el artículo sobre [[Client Scripting Functions|Funciones de cliente]].'''
    3 KB (426 words) - 00:36, 3 January 2022
  • ...mple you could use it to associate a score with a player, or a team with a vehicle. ...ored as element data are ''non-element userdata'' (see [[MTA Classes]]), ''functions'' and ''threads''. Also, you may not send tables which contain one or more
    2 KB (261 words) - 16:38, 8 April 2024
  • vehicle createVehicle ( int model, float x, float y, float z [, float rx, float ry, {{OOP|Это статическая функция класса Vehicle.|[[Vehicle]]||}}
    8 KB (656 words) - 15:10, 11 September 2021
  • This class allows you to handle matrixes without using MTA's OOP functions<br/> This class is called POP because it doesn't use any OOP functions while keeping Lua's class structure.
    3 KB (357 words) - 12:56, 14 February 2024
  • * Added functions to remove and re-add parts of the San Andreas world ===New Functions===
    2 KB (258 words) - 18:58, 21 February 2021
  • == Vehicle component manipulation == ...ich includes hiding parts, moving parts and rotating parts relative to the vehicle they are currently on.
    3 KB (504 words) - 22:04, 5 December 2018
  • == Vehicle component manipulation == ...ich includes hiding parts, moving parts and rotating parts relative to the vehicle they are currently on.
    3 KB (504 words) - 22:04, 5 December 2018
  • *[[Vehicle]]s -- Bind above functions to arrow keys
    3 KB (398 words) - 18:03, 12 March 2024
  • vehicle createVehicle ( int model, float x, float y, float z [, float rx, float ry, * '''model''': [[PL/Vehicle IDs|model pojazdu]], którego chcesz stworzyć.
    6 KB (806 words) - 20:49, 17 June 2021
  • ...written between square brackets are optional, so in this Wiki you can find functions with some arguments between square brackets too. That means they are option <syntaxhighlight lang="lua">vehicle createVehicle ( int model, float x, float y, float z, [ float rx, float ry,
    4 KB (628 words) - 16:52, 4 August 2023
  • This example attaches (fixes) the camera to a vehicle. {{Client camera functions}}
    914 bytes (107 words) - 21:57, 9 October 2020
  • ...]in saydamlık değerini döndürür. Bu bir [[player]], [[ped]], [[object]], [[vehicle]] ya da [[Element/Weapon|weapon]] olabilir. {{Element functions}}
    1 KB (141 words) - 23:05, 29 December 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 http://b {{PT-BR/SVG functions}}
    3 KB (480 words) - 17:10, 20 February 2022
  • ...he specified [[element]]. This can be a [[player]], [[ped]], [[object]], [[vehicle]] or [[Element/Weapon|weapon]]. {{Element functions}}
    1 KB (115 words) - 22:53, 1 January 2015
  • This example will make it rain when player or ped enters a vehicle, and stop once it leaves. {{World functions}}
    1 KB (132 words) - 08:18, 16 September 2021
  • This function creates a vehicle at the specified location. ...eOfMassToBaseOfModel]], or you can estimate it yourself and just spawn the vehicle so it drops to the ground.
    10 KB (1,271 words) - 08:17, 4 December 2020
  • * Added Custom Vehicle Sirens === New Functions ===
    7 KB (886 words) - 09:40, 29 September 2014
  • DGS = exports.dgs --get exported functions from dgs veh = createVehicle(411,0,0,3) -- Create a vehicle
    1 KB (118 words) - 08:04, 9 February 2020
  • *'''attacker''': El [[player]] [[element]] representa al atacador de [[vehicle]] [[element]] (al ser atropellados o caerse de una bicicleta). ===Client event functions===
    2 KB (225 words) - 21:09, 14 June 2021
  • if getElementType(source) == "vehicle" and triggeredByModels[getElementModel(source)] then outputServerLog ("** ILLEGAL VEHICLE DETECTED ** "..getVehicleName(source).." was found at "..toJSON({getElement
    3 KB (300 words) - 08:22, 4 November 2020
  • ...angular velocity from. Can be either a [[player]], [[ped]], [[object]], [[vehicle]] or a [[Element/Weapon|custom weapon]]. '''Server side supports only vehic {{Element functions}}
    1 KB (115 words) - 01:34, 11 December 2022
  • ** '''[[vehicle|Vehicles]]'''. {{Client element functions}}
    1 KB (143 words) - 13:53, 31 December 2014
  • {{OOP|Tę funkcję można również użyć w formie obiektowej.|[[Vehicle]].getModelFromName}} {{Vehicle functions}}
    2 KB (277 words) - 19:43, 20 July 2016
  • * [[Client Scripting Functions|Client-side functies]] * [[Server Scripting Functions|Server-side functies]]
    5 KB (700 words) - 16:39, 23 January 2022
  • *** '''checkCarTires''': allows the shoot to be blocked by [[vehicle]] tires. *** '''checkVehicles''': allows the shoot to be blocked by [[vehicle|vehicles]].
    2 KB (347 words) - 14:23, 4 July 2016
  • -- Is the player we're warping to in a vehicle? -- Indeed they are, let's get the vehicle information such as the vehicle element itself, and the seats it's got.
    6 KB (510 words) - 23:46, 5 January 2017
  • ...U/Element/Player|игрока]]/[[RU/Element/Ped|пешехода]], модель [[RU/Element/Vehicle|транспортного средства]] или модель [[RU/Elem ** для [[RU/Element/Vehicle|транспортных средств]]: [[RU/Vehicle IDs|ID модели транспортного средства]];
    4 KB (265 words) - 19:47, 6 June 2022
  • DGS = exports.dgs --get exported functions from dgs veh = createVehicle(411,0,0,3) -- Create a vehicle
    1 KB (129 words) - 07:59, 9 February 2020
  • outputChatBox ("Your camera can" .. (veh and "" or "not") .. "see the vehicle interior at the moment!",255,0,0,false) {{Client camera functions}}
    1,008 bytes (125 words) - 07:12, 10 October 2020
  • ...value for the specified [[element]]. This can be a [[player]], [[ped]], [[vehicle]], [[object]].}} {{Client element functions}}
    1 KB (142 words) - 13:50, 22 October 2022
  • This function gets position of the dummies contained in a vehicle model. {{OOP||[[Vehicle]].getVehicleModelDummyPosition||setVehicleModelDummyPosition }}
    3 KB (436 words) - 12:29, 18 January 2021
  • DGS = exports.dgs --get exported functions from dgs veh = createVehicle(411,0,0,3) -- Create a vehicle
    1 KB (132 words) - 08:02, 9 February 2020
  • ...] to apply the spin to. Can be either a [[player]], [[ped]], [[object]], [[vehicle]] or a [[Element/Weapon|custom weapon]]. {{Element functions}}
    1 KB (132 words) - 18:56, 29 October 2023
  • ...ayer is on foot and on the ground, ''false'' otherwise, even if he is in a vehicle capable of flying. {{Player functions}}
    1 KB (154 words) - 11:49, 26 June 2014
  • **'''extraairresistance''' - toggle the vehicle speed limit on cross-country roads (default: true) **{{New feature/item|3.0160|1.5.9|21125|'''vehiclesunglare''' - toggle the vehicle sun glare effect (default: false) }}
    4 KB (412 words) - 17:40, 10 September 2023
  • ...entația pentru categoriile incomplete -> [[:Category:Incomplete|Incomplete functions]]. ...exemple la funcții si event-uri [[:Category:Needs_Example |Add examples to functions and events]].
    9 KB (1,387 words) - 18:30, 15 March 2023
  • ...he code could be made simpler by simply getting the right component of the vehicle matrix. '''Make sure that you put this code in a resource which has OOP ena -- EFFECT CONTROL FUNCTIONS --
    10 KB (1,278 words) - 12:10, 15 January 2022
  • outputChatBox ("Your camera can see the vehicle interior now!",255,0,0,false) {{Client camera functions}}
    1 KB (145 words) - 06:20, 20 January 2022
  • * [[HU/Client Scripting Functions|Kliens-oldali függvények]] * [[HU/Server Scripting Functions|Szerver-oldali függvények]]
    8 KB (1,335 words) - 22:25, 2 January 2022
  • This snippet demonstrates a binary vehicle handling format. This saves space in comparison to a .XML based format. -- Save the handling of your vehicle, so you can reuse it later.
    7 KB (611 words) - 03:03, 23 January 2022
  • This snippet demonstrates a binary vehicle handling format. This saves space in comparison to a .XML based format. -- Save the handling of your vehicle, so you can reuse it later.
    7 KB (605 words) - 23:40, 16 January 2022
  • local vehicles = getElementsByType("vehicle") -- if the vehicle's ID is the one provided, destroy it
    5 KB (689 words) - 18:11, 17 November 2021
  • * [[Useful_Functions|Useful functions]] **[http://www.lua.org/manual/5.1/#index Internal Lua functions reference]
    10 KB (936 words) - 00:37, 13 August 2023
  • outputChatBox ("Your camera can" .. (veh and "" or "not") .. "see the vehicle interior at the moment!",255,0,0,false) {{Client camera functions hu}}
    1 KB (144 words) - 07:24, 17 October 2018
  • * Made GUI-functions accept vectors * Added logging a warning when some functions are used on non-joined players (e.g. when called from [[onPlayerConnect]])
    5 KB (566 words) - 19:40, 29 December 2022
  • ...sed to give or take a jetpack from a ped, it won't work if the ped is in a vehicle. {{Ped functions}}
    1 KB (183 words) - 14:13, 27 April 2020
  • * [[Client Scripting Functions|Klient-side Funkcie]] * [[Server Scripting Functions|Server-side Funkcie]]
    8 KB (1,217 words) - 22:26, 2 January 2022
  • * [[Client Scripting Functions|클라이언트 측 함수 목록]] * [[Server Scripting Functions|서버 측 함수 목록]]
    7 KB (611 words) - 22:21, 2 January 2022
  • * [[Element/Vehicle|Vehicles]] {{Element functions}}
    2 KB (87 words) - 22:47, 12 April 2021
  • *'''checkVehicles:''' Allow the line of sight to be blocked by [[Vehicle|vehicles]]. ...''' an integer representing the part of the element hit if hitElement is a vehicle or a ped/player, ''0'' otherwise.
    8 KB (1,061 words) - 14:44, 27 June 2020
  • * [[Element/Vehicle|Vehicles]] {{Element functions}}
    1 KB (152 words) - 02:03, 24 August 2013
  • === Scripting: New functions === * Added flags (1 ignorecase; 2 multiline; 4 dotall; 8 extented) to preg functions
    8 KB (1,090 words) - 16:07, 7 September 2018
  • * [[Client Scripting Functions|Client-side Funkce]][[Image:usen.gif|Pouze v Angličtině]] * [[Server Scripting Functions|Server-side Funkce]][[Image:usen.gif|Pouze v Angličtině]]
    9 KB (1,399 words) - 21:12, 12 October 2022
  • ...e ped's gaze will follow the specified element instead. Can be a player, a vehicle, another ped etc. ...you can use [[triggerLatentServerEvent]] and [[triggerLatentClientEvent]] functions.
    2 KB (309 words) - 18:59, 30 January 2022
  • outputChatBox ("Your camera can see the vehicle interior now!",255,0,0,false) {{Client camera functions hu}}
    1 KB (196 words) - 10:31, 11 August 2019
  • ...he length of 3 dimensional vectors. This example calculates the speed of a vehicle by measuring the size of the it's velocity vector: speed = getDistanceBetweenPoints3D ( 0, 0, 0, getElementVelocity ( vehicle ) )
    3 KB (452 words) - 17:20, 25 February 2022
  • *** '''checkCarTires''': allows the shoot to be blocked by [[vehicle]] tires. *** '''checkVehicles''': allows the shoot to be blocked by [[vehicle|vehicles]].
    3 KB (449 words) - 18:21, 23 December 2014
  • * Vehicle handling can be modified by servers ===New Functions===
    25 KB (3,334 words) - 07:46, 29 September 2014
  • **[http://www.lua.org/manual/5.1/#index Internal Lua functions reference (англ.)] * [[Client Scripting Functions|Функції на стороні клієнта]] [[Image:usen.gif|Ста
    14 KB (985 words) - 20:26, 23 April 2018
  • elseif getElementType( element ) == "vehicle" then -- Use the vehicle's model name
    7 KB (918 words) - 09:51, 30 January 2022
  • ...ynced by the local player or not. Accepted elements are [[ped|peds]] and [[vehicle|vehicles]]. {{Client element functions}}
    2 KB (173 words) - 02:22, 1 January 2015
  • ...he specified [[element]]. This can be a [[player]], [[ped]], [[object]], [[vehicle]] or [[Element/Weapon|weapon]]. {{Element functions}}
    2 KB (223 words) - 04:29, 11 August 2019
  • ...d handbrake keys, then force the accelerate on for any player who enters a vehicle. {{Input functions}}
    1 KB (191 words) - 00:00, 30 April 2024
  • ...un determinado [[element]]. Puede ser: [[player]], [[ped]], [[object]] o [[vehicle]]. {{Element functions}}
    2 KB (195 words) - 19:28, 24 June 2014
  • ...the ped is not streamed in, the movement type is unknown, the ped is in a vehicle or the ped is invalid. {{Ped functions}}
    1 KB (202 words) - 13:14, 23 July 2022
  • '''Example 1:''' This example attaches a marker to a vehicle, and detaches it when it blows up: {{DGS 3D Image Functions}}
    2 KB (202 words) - 02:18, 12 August 2022
  • vehicle createVehicle ( int model, float x, float y, float z [, float rx, float ry, {{PT-BR/POO||[[Vehicle]]||}}
    10 KB (1,288 words) - 20:46, 20 June 2021
  • ...ement is not fully streamed in. This can happen during the period when the vehicle/object model is loading while the element is not actually fully created yet {{Client element functions}}
    2 KB (236 words) - 19:30, 17 September 2023
  • * [[RU/Client Scripting Functions|Клиентские функции]] * [[RU/Server Scripting Functions|Серверные функции]]
    11 KB (945 words) - 19:38, 4 May 2021
  • *[[Vehicle]] {{Client element functions}}
    2 KB (224 words) - 16:06, 23 December 2023
  • This script invertes left and right vehicle steering for the player. {{Client input functions}}
    2 KB (207 words) - 21:06, 23 September 2021
  • -- Bind above functions to arrow keys {{Issue|7594|(Fixed in r11452) setCameraTarget on a player inside a vehicle with hydraulics bugs camera}}
    3 KB (398 words) - 12:36, 8 November 2018
  • This example stops the player from entering a vehicle. {{Event functions}}
    2 KB (276 words) - 11:23, 8 June 2022
  • ...function is used to give a ped a jetpack, it won't work if the ped is in a vehicle. {{Ped functions}}
    2 KB (249 words) - 10:20, 30 January 2022
  • * Added light functions === Scripting: New functions ===
    4 KB (379 words) - 19:42, 29 December 2022
  • elseif getElementType( element ) == "vehicle" then -- Use the vehicle's model name
    7 KB (958 words) - 10:58, 16 May 2019
  • * If the player is in a vehicle {{Player functions}}
    2 KB (269 words) - 11:34, 26 June 2014
  • ...gridlists in creating a vehicle selection screen, with optional clientside vehicle xml data reading. ==Setting up the Vehicle Selection==
    20 KB (2,848 words) - 13:34, 25 November 2018
  • **[http://www.lua.org/manual/5.1/#index Internal Lua functions reference] * [[PL/Server Scripting Functions|Funkcje po stronie serwera]] [[Image:Plflag.png|Artykuł w języku polskim]
    11 KB (1,753 words) - 19:11, 27 March 2024
  • ...the ped is not streamed in, the movement type is unknown, the ped is in a vehicle or the ped is invalid. {{Ped functions hu}}
    2 KB (226 words) - 17:53, 8 October 2018
  • ...use this function to spawn a [[player]]. It will cause problems with other functions like [[warpPedIntoVehicle]]. Use [[spawnPlayer]] instead.}} ...Take a look at [https://forum.mtasa.com/topic/132891-important-helprespawn-vehicle/?do=findComment&comment=1003198 this MTA forums post] for steps in the righ
    3 KB (346 words) - 18:55, 30 January 2022
  • ...Target:''' The [[element]] to shoot at. It can be a [[player]], [[ped]], [[vehicle]] or [[object]]. ** '''[[Vehicle|Vehicles]]''':
    4 KB (551 words) - 01:05, 16 January 2023
  • * [[RU/Useful Functions|Полезные функции]] * [[RU/Client Scripting Functions|Клиентские функции]]
    11 KB (831 words) - 22:27, 2 January 2022
  • ...entity it finds. The entities are processed by their '''type''' (building, vehicle, ped, object, dummy), their '''effective position''' (underwater, on ground ...ve fix for the whole GTA:SA scene. The issues can be combated in [[MTA:Eir/functions/engineSetWorldRenderMode|multiple ways]]. The '''meshlocal_alphafix''' meth
    3 KB (520 words) - 03:48, 22 July 2016
  • * [[Vehicle|Vehicles]] -- create the vehicle
    4 KB (492 words) - 16:27, 13 February 2015
  • *'''Vehicle change pickups:''' ezek a jármű nevét jelzik a pickup felett. Rögtön a ...wnpoint posX="X" posY="Y" posZ="Z" rotation="Rotation in degrees" vehicle="Vehicle ID" id="spawnpointID" [ paintjob="paintjob ID" upgrades="comma-separated li
    10 KB (1,343 words) - 11:38, 5 November 2018
  • Next we'll add a command to your script that players can use to spawn a vehicle beside their position. You may skip it and check out more advanced scriptin ...t.lua'' file. As mentioned above, we want to provide a command to create a vehicle beside your current position in the game. Firstly we need to create a funct
    22 KB (3,205 words) - 05:39, 11 November 2013
  • * [[:Category:Needs_Example |اضف مثال لل functions ولل events]]. * [[AR/Client Scripting Functions|وظائف الـ Client]] [[Image:Sa.png|اللغة العربية|20px]]
    10 KB (856 words) - 05:16, 17 July 2022
  • * Client - Deathmatch: Where MTA makes all it's functions and events do stuff. ...function calls to the game so each element will have a game_sa class like Vehicle, Ped, Object etc.
    5 KB (671 words) - 17:37, 12 March 2020
  • * [[Previous-car-method|Previous Car Method]] - Explanation how vehicle sync worked in GTA3:MTA 0.1a and 0.2a * [[:Category:Deprecated]] - Old and deprecated (LUA) functions and events.
    5 KB (787 words) - 19:11, 21 February 2022
  • ...n order to freeze a player, which will be used every time someone enters a vehicle. {{Input functions}}
    2 KB (275 words) - 08:43, 4 November 2020
  • ...he script would be able to react if the player presses ''aim_weapon'' in a vehicle, for example). These functions return ''true'' if no error arised. They return ''nil'' plus an error messa
    6 KB (801 words) - 13:28, 14 November 2014
  • *'''checkVehicles:''' Allow the line of sight to be blocked by [[Vehicle|vehicles]]. for k,v in ipairs(getElementsByType("vehicle")) do
    4 KB (593 words) - 16:18, 21 July 2023
  • ...ively. This function can fail if the element is a player in a car. Use the vehicle element in this case. It will also fail if the element specified does not h {{element functions}}
    2 KB (289 words) - 17:49, 25 May 2018
  • Next, we'll add a command to your script that players can use to spawn a vehicle beside their position. You may skip it and check out more advanced scriptin ...t.lua'' file. As mentioned above, we want to provide a command to create a vehicle beside your current position in the game. Firstly we need to create a funct
    22 KB (3,438 words) - 17:27, 9 March 2024
  • ==Vehicle Functions== <section name="Functions" class="Server client"> {{Vehicle functions}} </section>
    13 KB (2,083 words) - 05:57, 22 March 2016
  • ...g functions, and for fair play reasons (so that clients have no power over vehicle handlings, it's default unless the server decides otherwise).
    3 KB (404 words) - 06:50, 14 April 2021
  • local vehicle = createVehicle(411, 0, 0, 3) setVehicleDamageProof(vehicle, true)
    10 KB (1,735 words) - 08:16, 27 February 2020
  • ....ide file. These vehicle ID numbers are used for several vehicle scripting functions. Lua table of all the valid vehicle IDs listed on this page:
    13 KB (2,161 words) - 05:56, 22 March 2016
  • ...''rights'' available in MTA - these mainly focus on server-side scripting functions. What this essentially means is that the ACL allows you to choose exactly what functions a resource or user can perform. This can obviously be invaluable - for exam
    9 KB (1,322 words) - 12:24, 29 September 2014
  • This function creates a [[shader]] element that can be used in the dxDraw functions. Successful shader creation is not guaranteed unless the [[shader|Effect Fi ...at maxDistance = 0, bool layered = false, string elementTypes = "world,ped,vehicle,object,other,all" ] )
    8 KB (1,035 words) - 23:18, 8 February 2023
  • * '''40''' new functions ==== 19 New Functions ====
    17 KB (2,101 words) - 19:39, 29 December 2022
  • ==Main Functions== ***'''checkVehicles:''' Allow the line of sight to be blocked by [[Vehicle|vehicles]].
    5 KB (695 words) - 06:06, 9 December 2021
  • ...given incorrectly. As a rule, keys that move or affect the player or their vehicle are most likely to be accurate. For increased accuracy (and also increased {{Input functions}}
    3 KB (338 words) - 00:00, 30 April 2024
  • * Added option for [[addDebugHook]] to skip event/functions * [[setVehiclePlateText]] now works with any kind of vehicle, including motorbikes (thanks to '''lopezloo''')
    6 KB (739 words) - 19:41, 29 December 2022
  • * [[Vehicle]]s -- create the vehicle
    4 KB (587 words) - 19:46, 15 April 2021
  • ...l List (ACL) that allows you to secure and limit access to the server, its functions, and resources in any number of ways. ...''rights'' available in MTA - these mainly focus on server-side scripting functions.
    10 KB (1,482 words) - 20:29, 6 December 2020
  • * [[Server Scripting Functions|Server-taraflı fonkisyonlar]] *[[Vehicle Colors|Araç Renkleri]]
    9 KB (1,261 words) - 22:23, 3 May 2023
  • *'''Function''' entries are MTA scripting functions. For example, if a resource needed to use restartResource and was only in t ...uses [[addCommandHandler]]. An example would be typing '''/createvehicle [vehicle]''' in the chatbox for the freeroam resource. This controls whether users i
    4 KB (582 words) - 15:08, 11 June 2023
  • ==== New Functions ==== * Fixed not working crouching with vehicle extrapolation
    13 KB (1,667 words) - 08:55, 4 November 2017
  • === Functions === -- Default track functions
    7 KB (1,078 words) - 22:12, 3 October 2016
  • ==Main Functions== ***'''checkVehicles:''' Allow the line of sight to be blocked by [[Vehicle|vehicles]].
    5 KB (813 words) - 06:49, 9 December 2021
  • <!-- Incomplete * [[Module functions|Server-side external module scripting functions list]] --> *[[Vehicle IDs|Veículos]]
    12 KB (1,892 words) - 20:25, 25 April 2023
  • <!-- Incompleto * [[Module functions|Lista de funciones del lado del servidor proveídas por módulos]] --> *[[Vehicle IDs|Vehículos]] [[Image:flag_us.png|En inglés|20px]]
    13 KB (2,117 words) - 22:24, 2 January 2022
  • '''''mta-helper.fx''''' also contains some helpful functions which calculate GTA lighting. //-- If you are replacing a vehicle texture, do this instead:
    11 KB (1,232 words) - 08:47, 15 April 2021
  • '''''mta-helper.fx''''' also contains some helpful functions which calculate GTA lighting. //-- If you are replacing a vehicle texture, do this instead:
    11 KB (1,237 words) - 17:57, 8 April 2023
  • * Added functions to modify dynamic objects' behaviour ([https://github.com/multitheftauto/mt * Added functions to manipulate colshapes parameters ([https://github.com/multitheftauto/mtas
    20 KB (2,461 words) - 14:50, 1 October 2021
  • Next we'll add a command to your script that players can use to spawn a vehicle beside their position. You may skip it and check out more advanced scriptin ...t.lua'' file. As mentioned above, we want to provide a command to create a vehicle beside your current position in the game. Firstly we need to create a funct
    21 KB (3,450 words) - 03:43, 10 March 2013
  • All functions used in the binds system use either '''control names''' or '''key names'''. Since analog controls are shared both on foot and in vehicle, two different sets are not required.
    6 KB (976 words) - 18:48, 10 September 2016
  • ....ide file. These vehicle ID numbers are used for several vehicle scripting functions. ====Lua table of all the valid vehicle IDs listed on this page====
    18 KB (1,912 words) - 22:00, 5 December 2018
  • * You can now edit element bone behavior through 7 new bone manipulation functions! Great for some dynamic animations. Get started at [[setElementBonePositio ...ehicle customisation options! You can now edit vehicle dummy positions per vehicle. See [[setVehicleDummyPosition]]. Thanks to botder.
    28 KB (3,414 words) - 19:46, 16 June 2023
  • local pojazdy = getElementsByType("vehicle") pojazdy = getElementsByType("vehicle")
    5 KB (670 words) - 15:58, 6 December 2020
  • * [[Useful Functions]] <!-- Incomplete * [[Module functions|服务器端外部模块的脚本功能列表]] -->
    8 KB (830 words) - 22:20, 2 January 2022
  • ===Useful functions=== There are some functions that may come in handy for debugging.
    18 KB (2,477 words) - 20:36, 21 February 2021
  • * [[Vehicle]]s {{DGS 3D Image Functions}}
    3 KB (388 words) - 02:18, 12 August 2022
  • Ab aage ham command daleu gay jo players vehicle ko spawn karne ke liye use kar sakte hain apne position pe. Ap shaid is ko ...e ke ooper mention kiya, ham chahtay hain ke command par hamaray saath aik vehicle spawn go, sab se pehle hameu aik function banana ho ga, jis ko ham call kar
    22 KB (3,653 words) - 06:13, 25 October 2014
  • ...eatures a built-in debug console that shows debug messages output from MTA functions or from scripts. Keeping it mind that you should have administrator access ===Useful functions===
    18 KB (2,760 words) - 16:40, 15 April 2017
  • ...so that water is visible when viewed through translucent surfaces, such as vehicle windows. However, some MTA custom objects placed underwater will appear in {{Client water functions}}
    4 KB (514 words) - 23:09, 22 October 2023
  • 22 KB (618 words) - 06:22, 2 May 2020
  • ...eatures a built-in debug console that shows debug messages output from MTA functions or from scripts. Keeping it mind that you should have administrator access ===Useful functions===
    18 KB (2,815 words) - 08:56, 4 July 2022
  • {{Issue|6682|Server doesnt update ped position after warping it to vehicle}} {{Ped functions hu}}
    3 KB (530 words) - 17:21, 30 December 2018
  • *'''Function''' entries are MTA scripting functions. For example, if a resource needed to use restartResource and was only in t ...uses [[addCommandHandler]]. An example would be typing '''/createvehicle [vehicle]''' in the chatbox for the freeroam resource. This controls whether users i
    9 KB (1,421 words) - 01:10, 3 January 2022
  • ...used for several vehicle scripting functions. Click on model image to view vehicle in 3D. ====Lua table of all the valid vehicle IDs listed on this page====
    33 KB (3,729 words) - 05:57, 26 January 2022
  • *'''checkVehicles:''' Allow the line of sight to be blocked by [[Vehicle|vehicles]]. {{Useful Functions}}
    4 KB (566 words) - 22:13, 23 May 2020
  • ...o process text that was entered after the command, like in our example the vehicle model id). * Get the players position, so we know where to spawn the vehicle (we want it to appear right beside the player)
    26 KB (2,258 words) - 00:57, 4 April 2022
  • This SDK allows you to call exported MTA functions from Java over HTTP. All Element Functions;
    21 KB (2,792 words) - 20:47, 23 September 2016
  • | Bad or missing vehicle model. This usually happens when you deleted a model from your GTA3.img wit ...still be a bad model (or a dodgy script, that, tell them this: deals with vehicle types, variants, upgrades etc, in an improper way)
    11 KB (1,730 words) - 18:05, 12 May 2024
  • This function allows you to attach an object, ped, player or vehicle to a ped or player bone for '''ONE FRAME'''. In order to attach an element ...ped/player bone. Should work with any element that is supported by matrix functions.
    6 KB (661 words) - 13:02, 5 July 2022
  • |Bad vehicle model. Use unmodded GTA install to check, or incase of server mods, ask ser ...ssion on a server with bad practise in their scripts (abusing RAM and anim functions).
    15 KB (2,541 words) - 21:09, 28 March 2024
  • ...4 matrix. Returns ''false'' if the element is not streamed in, and not a [[vehicle]], [[ped]] or [[object]]. This example creates some more matrix utility functions
    5 KB (724 words) - 22:08, 25 December 2020
  • <vehicle/> ...at are created dynamically by this resource using scripts, for example a [[vehicle]]. If the resource has a map file, it is also a child element, itself conta
    7 KB (1,039 words) - 08:12, 24 October 2022
  • <section name="Functions" class="Server client"> {{Vehicle functions}} </section> [[en:Vehicle Upgrades]]
    14 KB (2,183 words) - 00:52, 2 June 2020
  • ==All valid upgrades per vehicle== ==Vehicle Functions==
    45 KB (2,609 words) - 22:02, 5 December 2018
  • ....map file). This works for both custom types and built-in MTA types (like "vehicle" or "player"). ...iting a map-loader for every single gamemode, the [[Map manager]] provides functions to load gamemodes and maps. Simply put, when you enter the correct command
    8 KB (1,232 words) - 17:39, 21 August 2012
  • * Add new drawing functions: [[dxDrawPrimitive]] and [[dxDrawMaterialPrimitive]] * '''27''' new functions
    36 KB (4,820 words) - 20:23, 29 September 2021
  • ...plit into subroutines or the more patterns found have been put into shared functions, the better is the result of the research. Since the whole engine logic tie * vehicle rendering logic
    7 KB (1,072 words) - 03:48, 22 July 2016
  • ...there are many ways to achieve the same thing as long as you know all the functions and events. ...one. For example rather than having meaningless things like ''vehicleTable[vehicle][7]'' in the main file, put that in a function in the 2nd file and have the
    8 KB (1,269 words) - 17:30, 2 August 2023
  • {{PL/Issue|6682|Server doesnt update ped position after warping it to vehicle|Serwer nie aktualizuje pozycji peda po przeteleportowaniu go do pojazdu}} {{Ped functions}}
    5 KB (690 words) - 19:15, 20 July 2016
  • ...cję gracza. Odkąd gracze są Elementami, przejdziemy najpierw do '''Element functions''', gdzie znajdziemy funkcję [[getElementPosition]]. Klikając nazwę funk ...y tylko jedną rzecz, którą zwraca (jest to często spotykane), element typu vehicle, który wskazuje na spawnowany pojazd. Także, możemy zauważyć argumenty
    14 KB (2,053 words) - 10:57, 29 May 2022
  • *'''checkVehicles:''' Allow the line of sight to be blocked by [[Vehicle|vehicles]]. {{Client world functions}}
    6 KB (815 words) - 14:00, 27 June 2020
  • {{Vehicle functions}} [[ru:Vehicle IDs]]
    13 KB (2,225 words) - 17:07, 5 September 2015
  • ...dHandler]] verwendet. Ein Beispiel wäre die Eingabe von '''/createvehicle [vehicle]''' in der Chatbox für die Ressource freeroam. Dies steuert, ob Benutzer i ===Scripting functions===
    11 KB (1,539 words) - 20:15, 30 June 2022
  • * [[RU/Element/Vehicle|Транспортные средства]] {{RU/Element functions}}
    7 KB (258 words) - 19:44, 15 April 2021
  • ....map file). This works for both custom types and built-in MTA types (like "vehicle" or "player"). ...iting a map-loader for every single gamemode, the [[Map manager]] provides functions to load gamemodes and maps. Simply put, when you enter the correct command
    9 KB (1,419 words) - 19:49, 19 April 2020
  • *[[MTA:Eir/New_Scripting_Functions|New Scripting Functions]] ...ynchronization, an account system, spawn management, pickup management and vehicle spawns. He is the creator of the [[resource:pathrecorder|pathrecorder]], [[
    9 KB (1,456 words) - 23:06, 2 April 2017
  • As the name suggests it is only race (you cannot get out of your vehicle). * Improved vehicle synchronization.
    24 KB (3,169 words) - 12:05, 20 September 2023
  • ...ipts on MTA servers, useful for creating gamemodes, whilst providing other functions such as cheat protection and links to other programs. Item/Vehicle/Property Purchasing/Selling
    8 KB (1,349 words) - 20:05, 21 February 2022
  • * '''31''' new functions * Added new streaming functions ([https://github.com/multitheftauto/mtasa-blue/commit/7ffc31243c1dbca8ed5e7
    23 KB (3,264 words) - 17:52, 4 May 2024
  • ...nd readability. This is a list of [[Server_Scripting_Functions|server-side functions]]. ==Vehicle==
    22 KB (1,523 words) - 05:29, 6 November 2023
  • * [[Server Scripting Functions|Funzioni Server-Side]] *[[Vehicle variants|Varianti dei Veicoli]]
    7 KB (1,034 words) - 22:27, 2 January 2022
  • ==All valid upgrades per vehicle== ==Vehicle Functions==
    89 KB (4,022 words) - 14:25, 19 February 2024
  • ....map file). This works for both custom types and built-in MTA types (like "vehicle" or "player"). ...iting a map-loader for every single gamemode, the [[Map manager]] provides functions to load gamemodes and maps. Simply put, when you enter the correct command
    9 KB (1,550 words) - 18:13, 18 November 2018
  • ...with single player, this also causes [[setVehicleLocked]] to not lock the vehicle anymore, as entry happens through the window. :* Some functions expect only unsigned integers (positive numbers), and since Jan 2016 provid
    68 KB (10,156 words) - 00:00, 14 May 2024
  • ...t)] - which will block resources from using certain, potentially dangerous functions. local playerVehicle = getPedOccupiedVehicle(client) -- get player's current vehicle
    68 KB (8,381 words) - 16:29, 23 April 2024
  • {{ACL functions}}
    14 KB (435 words) - 12:27, 14 February 2024
  • {{Vehicle functions}} [[en:Vehicle IDs]]
    19 KB (1,775 words) - 14:38, 26 July 2017
  • ...s joueurs sont des éléments, nous devons allez dans la rubrique '''Element functions''' où l'on pourra trouver la fonction [[getElementPosition]]. En cliquant ...parlons d'un véhicule, nous devons donc aller dans la catégorie'''Vehicle functions''', où l'on va trouver la fonction [[createVehicle]]. Dans la syntaxe, nou
    24 KB (3,773 words) - 11:24, 16 February 2021
  • ...одно возвращаемое значение (что встречается наиболее часто) - элемент типа vehicle, представляющий только что созданное ТС.
    36 KB (768 words) - 17:12, 19 May 2019
  • ...nd readability. This is a list of [[Client_Scripting_Functions|client-side functions]]. ==Vehicle==
    31 KB (2,094 words) - 14:29, 30 May 2020
  • ...d without altering any original files supplied with the game. The software functions as a [http://en.wikipedia.org/wiki/Game_engine game engine] that installs i The first release of MTA:SA incorporates only vehicle synchronisation. The team has decided to start once more from scratch and b
    9 KB (1,504 words) - 12:36, 7 April 2018
  • ...o do jogador e como jogador é um Elemento, clicamos primeiro em '''Element functions''' onde haverá a função [[getElementPosition]] para tal fim. Ao clicar n ...]. Só que como estamos falando de veículos, procuramos na seção '''Vehicle functions'''; onde encontraremos [[createVehicle]]. Na sintaxe desta função, temos
    27 KB (4,378 words) - 02:10, 6 December 2014
  • {{Vehicle functions}} [[ru:Vehicle IDs]]
    21 KB (2,201 words) - 21:28, 27 November 2020
  • -- (when indexing just do a <vehicle model id you want the name of> - 399 to get the name) {{Vehicle functions}}
    21 KB (2,231 words) - 18:38, 3 April 2020