18.08.2015, 02:13
vehicle id IS NOT vehicle model id, please don't be confused with it.
Sunrise Vehicle model ID is 550, but vehicle id is the ID of every vehicle (like player ID).
If you type /dl you can see a label on vehicle, the "id" means the vehicle id, and the "type" means the model id
Here, try use this instead:
Sunrise Vehicle model ID is 550, but vehicle id is the ID of every vehicle (like player ID).
If you type /dl you can see a label on vehicle, the "id" means the vehicle id, and the "type" means the model id
Here, try use this instead:
Код:
public OnVehicleSpawn(vehicleid) { if(GetVehicleModel(vehicleid) == 550)) { AddVehicleComponent(vehicleid, 1001); AddVehicleComponent(vehicleid, 1005); AddVehicleComponent(vehicleid, 1006); AddVehicleComponent(vehicleid, 1010); AddVehicleComponent(vehicleid, 1020); AddVehicleComponent(vehicleid, 1025); AddVehicleComponent(vehicleid, 1143); tmpobjid = CreateDynamicObject(1593,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); SetDynamicObjectMaterial(tmpobjid, 0, 1560, "7_11_door", "CJ_CHROME2", -16738048); AttachDynamicObjectToVehicle(tmpobjid, vehicleid, 0.000, 3.000, -0.400, 0.000, 90.000, 90.000); tmpobjid = CreateDynamicObject(1593,0.0,0.0,-1000.0,0.0,0.0,0.0,-1,-1,-1,300.0,300.0); SetDynamicObjectMaterial(tmpobjid, 0, 1560, "7_11_door", "CJ_CHROME2", -16738048); AttachDynamicObjectToVehicle(tmpobjid, vehicleid, 0.000, 3.000, -0.200, 0.000, 90.000, 90.000); } return 1; }