Search results

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