IsVehicleWheelInAir: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|IsVehicleWheelInAir(vehicle, wheel)}} {{FuncParameters}} {{FuncParam|vehicle|__EDIT_ME__}} {{FuncP..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Check if the specified vehicle wheel is in air or not.}} | ||
{{FuncSyntax|IsVehicleWheelInAir(vehicle, wheel)}} | {{FuncSyntax|IsVehicleWheelInAir(vehicle, wheel)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|vehicle| | {{FuncParam|vehicle|The vehicle identifier.}} | ||
{{FuncParam|wheel| | {{FuncParam|wheel|The wheel id (starting from 1)}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' on success.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
if IsVehicleWheelInAir(vehicleId, 1) then | |||
print("The vehicle's driver side wheel is in air.") | |||
end | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
__EDIT_ME__ | __EDIT_ME__ |
Revision as of 19:41, 31 December 2019
Description
Check if the specified vehicle wheel is in air or not.
Syntax
IsVehicleWheelInAir(vehicle, wheel)
Parameters
- vehicle
The vehicle identifier. - wheel
The wheel id (starting from 1)
Return Value
- Returns true on success.
Example
if IsVehicleWheelInAir(vehicleId, 1) then
print("The vehicle's driver side wheel is in air.")
end
See also
__EDIT_ME__