How to add Object in AddVehicleComponent -
Saliim - 18.05.2016
Hi, i have a problem, i don't know how to add in AddVehicleComponent
MyTest
MyTest:
Код:
test = CreateObject(X,X.X,X.X,X.X,X.X,X.X,X.X,X.X);
SetObjectMaterial(test, X, X, "X", "X", 0x00000000);
in
Код:
AddVehicleComponent(vehicleid, MyTest);
But,
add a new wheels
Re: How to add Object in AddVehicleComponent -
BloodyRP - 18.05.2016
U thinks it is real?
With AddVehicleComponent u can only add a Car Components, nothing other, and u can see their ID here:
https://sampwiki.blast.hk/wiki/Car_Component_ID
Re: How to add Object in AddVehicleComponent -
Saliim - 18.05.2016
okay, so how can I turn my object attach to vehicle?
Re: How to add Object in AddVehicleComponent -
BloodyRP - 18.05.2016
Quote:
Originally Posted by Saliim
okay, so how can I turn my object attach to vehicle?
|
with those 2 funcs:
for CreateObject - AttachObjectToVehicle
AttachObjectToVehicle(objectid, vehicleid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:RotX, Float:RotY, Float:RotZ);
and for CreateDynamicObject - AttachDynamicObjectToVehicle
AttachDynamicObjectToVehicle(objectid, vehicleid, Float:Offsetx, Float:Offsety, Float:Offsetz, Float:rx, Float:ry, Float:rz);
But if u are trying to create a new wheels - that will not remove standart wheels.
Sorry for poor english.
Re: How to add Object in AddVehicleComponent -
Saliim - 18.05.2016
thank you, but that's not what I wanted to ask. I would like to have what I can rotate my object for rotation