GetVehicleEngineRPM: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetVehicleEngineRPM(vehicle)}} {{FuncParameters}} {{FuncParam|vehicle|__EDIT_ME__}} {{FuncReturnV..."
 
28days (talk | contribs)
No edit summary
 
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Get the vehicle's engine revolution per minute (RPM).}}


{{FuncSyntax|GetVehicleEngineRPM(vehicle)}}
{{FuncSyntax|GetVehicleEngineRPM(vehicle)}}


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


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns a floating point value.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
local rpm = math.floor(GetVehicleEngineRPM(GetPlayerVehicle()))
print("The RPM is "..rpm)
</syntaxhighlight>


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

Latest revision as of 12:41, 19 November 2019