Skip to main content

TURN_ON_VEHICLE_EXTRA_NO_REPAIR

Game.TurnOnVehicleExtraNoRepairHash0xB421B0B3
Usage
local result = Game.TurnOnVehicleExtraNoRepair(carIndex, extra)

Switches an extra (1 to 9) of a vehicle on like TURN_OFF_VEHICLE_EXTRA(carIndex, extra, false), but without repairing the vehicle. Health, dents, missing doors and windows, tyres and lights stay as they are, for the owner and for all other players.

Returns true if the extra is on afterwards and false if the model has no such extra.

For patterns that switch extras many times a second (for example emergency lights), switch them on once and use SET_VEHICLE_EXTRA_VISIBLE for the pattern. Every switch with this native or TURN_OFF_VEHICLE_EXTRA is sent to all players.

Parameters

  • carIndexintegerint
  • extraintegerint

Returns

  • resultbooleanreturn value
Original declaration
// 0xB421B0B3
bool TURN_ON_VEHICLE_EXTRA_NO_REPAIR(int carIndex, int extra);