跳到主要内容

RemoveVehicleComponent

描述

从车辆上移除指定组件。

参数名说明
vehicleid目标车辆的 ID
component要移除的组件 ID

返回值

true - 组件成功从车辆移除

false - 移除失败,通常表示车辆不存在

示例

// 移除玩家车辆的氮气加速组件
new vehicleid = GetPlayerVehicleID(playerid);
RemoveVehicleComponent(vehicleid, 1010);

相关函数

相关回调

相关资源