Skip to content

Vehicle_SetEngineState

Stefan Unković edited this page Jul 25, 2021 · 2 revisions

Description

Sets engine state to either on or off. E.g. turns engine off or on.

Syntax

Vehicle_SetEngineState(VEHICLE_FRAMEWORK_TAGS: id, e_ENGINE_STATES: engine_state)
Param Definition
VEHICLE_FRAMEWORK_TAGS: id ID whether of the vehicle or group
e_ENGINE_STATES: engine_state Either ENGINE_STATE_ON or ENGINE_STATE_OFF to turn engine respectively

Returns

It actually returns SetVehicleParamsEx values. E.g. 1 if function executes succesfully, otherwise 0.

Sidebar

Clone this wiki locally