StartVehicleEngine: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 22: Line 22:


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
*[[StopVehicleEngine]]

Revision as of 13:23, 1 September 2020

StartVehicleEngine

Type: Function
Context: Server
Introduced: v1.0

Description

Used to start vehicle engine

Syntax

StartVehicleEngine(vehicle)

Parameters

  • vehicle
    Vehicle which engine you want to start

Return Value

  • Returns true on success.

Example

function StartEngine(player)
   local veh = GetPlayerVehicle(player)
   if veh ~= 0 then
      StartVehicleEngine(veh)
   end
end
AddCommand('engine', StartEngine)

See also