GetVehicleGear: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Info|Function|Server & Client|1.0}}
{{Info|Function|Server & Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Get the vehicle's gear.}}


{{FuncSyntax|GetVehicleGear(vehicle)}}
{{FuncSyntax|GetVehicleGear(vehicle)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|vehicle|__EDIT_ME__}}
{{FuncParam|vehicle|The vehicle identifier.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Vehicle gear as integer.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
local gear = GetVehicleGear(GetPlayerVehicle())
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Template:VehicleFunctions}}

Latest revision as of 20:05, 2 September 2020