StopVehicleEngine

From Onset Developer Wiki
StopVehicleEngine

Type: Function
Context: Server
Introduced: v1.0

Description

Used to stop vehicle engine

Syntax

StopVehicleEngine(vehicle)

Parameters

  • vehicle
    Vehicle which engine you want to stop

Return Value

  • __EDIT_ME__

Example

function StopEngine(player)
   local veh = GetPlayerVehicle(player)
   if veh ~= 0 then
      StopVehicleEngine(veh)
   end
end
AddCommand('engineoff', StopEngine)

See also

__EDIT_ME__