跳至主要内容

RemoveVehicleComponent

Description

Remove a component from a vehicle.

NameDescription
vehicleidID of the vehicle.
componentID of the component to remove.

Returns

true - The component was successfully removed from the vehicle.

false - The component was not removed because the vehicle does not exist.

Examples

// Remove Nitro from player vehicle
new vehicleid = GetPlayerVehicleID(playerid);
RemoveVehicleComponent(vehicleid, 1010);