SA-MP Forums Archive
Create new car help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Create new car help (/showthread.php?tid=532139)



Create new car help - noamch1997 - 16.08.2014

how can i do it ? i want to create this car - http://prntscr.com/4dfbzq
code:
CreateObject(3528, -15.76100, 1721.67712, 23.41717, -0.06000, -51.24000, -105.66010);
CreateObject(353, -15.28710, 1722.27014, 23.43830, 0.00000, 0.00000, -193.14000);
CreateObject(3534, -16.81879, 1724.54675, 23.13122, -19.26001, -88.62003, -27.96006);
CreateObject(3534, -12.97100, 1723.44275, 23.13122, -19.26001, -88.62003, -188.81995);
CreateObject(3524, -15.99339, 1719.20422, 22.85414, -91.32009, 8.28000, -190.32007);
CreateVehicle(404, -15.2871, 1722.2701, 23.4383, -193.1400, -1, -1, 100);


Re: Create new car help - AntonioStyles - 16.08.2014

Do you want to script those objects to the vehicle model or do you want to set objects on vehicles In Game ?


Re: Create new car help - noamch1997 - 17.08.2014

Quote:
Originally Posted by AntonioStyles
Посмотреть сообщение
Do you want to script those objects to the vehicle model or do you want to set objects on vehicles In Game ?
to create new vehicle models


Re: Create new car help - noamch1997 - 17.08.2014

help ?


Re: Create new car help - Pottus - 17.08.2014

You want to use https://sampwiki.blast.hk/wiki/AttachObjectToVehicle but you just created objects around the vehicle. You need a vehicle object editor try searching here.

https://www.******.ca/?gws_rd=ssl#q=...+object+editor

Just to find the coordinates with what you have you would need subtract the vehicle x,y,z from every object then do a rotation translation calculation by rotating each object around 0,0,0 by -193.1400 degrees.


Keep in mind there is currently no public vehicle object editor that does object materials, object colors and object text.


Re: Create new car help - noamch1997 - 17.08.2014

Quote:
Originally Posted by Pottus
Посмотреть сообщение
You want to use https://sampwiki.blast.hk/wiki/AttachObjectToVehicle but you just created objects around the vehicle. You need a vehicle object editor try searching here.

https://www.******.ca/?gws_rd=ssl#q=...+object+editor

Just to find the coordinates with what you have you would need subtract the vehicle x,y,z from every object then do a rotation translation calculation by rotating each object around 0,0,0 by -193.1400 degrees.


Keep in mind there is currently no public vehicle object editor that does object materials, object colors and object text.
no man i want to create new models (id) .. how can i do it ?


Re: Create new car help - AdmCmd - 17.08.2014

As stated above, you need to attach those objects to the car.


Re: Create new car help - Toxik - 18.08.2014

noamch1997 just open the editor for mapinf find car you get codes and put it inGamemodeitn
Createvehicle(cords,ect,etc)


Re: Create new car help - noamch1997 - 18.08.2014

Quote:
Originally Posted by Toxik
Посмотреть сообщение
noamch1997 just open the editor for mapinf find car you get codes and put it inGamemodeitn
Createvehicle(cords,ect,etc)
can you give example to this codes ?
CreateObject(3528, -15.76100, 1721.67712, 23.41717, -0.06000, -51.24000, -105.66010);
CreateObject(353, -15.28710, 1722.27014, 23.43830, 0.00000, 0.00000, -193.14000);
CreateObject(3534, -16.81879, 1724.54675, 23.13122, -19.26001, -88.62003, -27.96006);
CreateObject(3534, -12.97100, 1723.44275, 23.13122, -19.26001, -88.62003, -188.81995);
CreateObject(3524, -15.99339, 1719.20422, 22.85414, -91.32009, 8.28000, -190.32007);
CreateVehicle(404, -15.2871, 1722.2701, 23.4383, -193.1400, -1, -1, 100);

*can i make a new car model without delete this car model ? [CreateVehicle 404]


Re: Create new car help - noamch1997 - 19.08.2014

can you give example to this codes ?
CreateObject(3528, -15.76100, 1721.67712, 23.41717, -0.06000, -51.24000, -105.66010);
CreateObject(353, -15.28710, 1722.27014, 23.43830, 0.00000, 0.00000, -193.14000);
CreateObject(3534, -16.81879, 1724.54675, 23.13122, -19.26001, -88.62003, -27.96006);
CreateObject(3534, -12.97100, 1723.44275, 23.13122, -19.26001, -88.62003, -188.81995);
CreateObject(3524, -15.99339, 1719.20422, 22.85414, -91.32009, 8.28000, -190.32007);
CreateVehicle(404, -15.2871, 1722.2701, 23.4383, -193.1400, -1, -1, 100);

*can i make a new car model without delete this car model ? [CreateVehicle 404]