Wiki

Clone wiki

EFLC-MP LUA / setVehicleEngineHp

Description

Sets a new engine health for a vehicle

Parameters

Int vehicleId, Int newHealth, Bool fixVehicle
Int vehicleId

Int newHealth: 1000: 100%, >0: damaged but ok, <0: smoking (might not start)

Bool fixVehicle: Will repair the vehicle bumpers and tyres

Return values


Example

Updated