How to add Object in AddVehicleComponent
#1

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
Reply
#2

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
Reply
#3

okay, so how can I turn my object attach to vehicle?
Reply
#4

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.
Reply
#5

thank you, but that's not what I wanted to ask. I would like to have what I can rotate my object for rotation
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)