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..."
 
28days (talk | contribs)
No edit summary
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Check if the specified vehicle wheel is in air or not.}}


{{FuncSyntax|IsVehicleWheelInAir(vehicle, wheel)}}
{{FuncSyntax|IsVehicleWheelInAir(vehicle, wheel)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|vehicle|__EDIT_ME__}}
{{FuncParam|vehicle|The vehicle identifier.}}
{{FuncParam|wheel|__EDIT_ME__}}
{{FuncParam|wheel|The wheel id (starting from 1)}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns '''true''' on success.}}


== Example ==
== Example ==
__EDIT_ME__
<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

IsVehicleWheelInAir

Type: Function
Context: Client
Introduced: v1.0

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__