StartVehicleEngine

From Onset Developer Wiki
Revision as of 20:05, 13 November 2019 by Kuzkay (talk | contribs)
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

  • __EDIT_ME__

Example

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


See also

__EDIT_ME__