Hiroszek Posted July 21, 2019 Posted July 21, 2019 How can i replace model for only 1 car? Not for all of them. for example. i got 2 perennials, i want to make first in sedan and second in coupe, and i want to spawn two in the same time.
Moderators Tut Posted July 21, 2019 Moderators Posted July 21, 2019 vehicle variants is used for R* vehicles to enable/disable roof or cones and spare tires for certain vehicles.https://wiki.multitheftauto.com/wiki/Vehicle_variants you could also use hideComponent (wrong?), both functions requires remodeling of the vehicle, and you may have to sacrifice the rear boot if your plan is to make a sedan and coupe in one vehicle. just something to bare in mind. Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime - Lao Tzu
HassoN Posted July 21, 2019 Posted July 21, 2019 You can't replace only 1 vehicle model. You replace all vehicles with the same id model. However, there's shaders option to change only the texture of a certain vehicle. * There is No God but Allah discord: HassoN#2709 Visit my wiki profile: https://wiki.multitheftauto.com/wiki/User:Hassan_saad
Hiroszek Posted July 21, 2019 Author Posted July 21, 2019 Can you show me a code to do this? I dont have any idea for this ;c
HassoN Posted July 21, 2019 Posted July 21, 2019 (edited) Try doing something with engineApplyShaderToWorldTexture check the example on wiki ^ Here's how it would look if you replace a shader on a vehicle: https://imgur.com/a/eAR6OPb Edited July 21, 2019 by HassoN * There is No God but Allah discord: HassoN#2709 Visit my wiki profile: https://wiki.multitheftauto.com/wiki/User:Hassan_saad
Hiroszek Posted July 21, 2019 Author Posted July 21, 2019 Yes, but i mean a model not a car texture, with this i makes that
HassoN Posted July 21, 2019 Posted July 21, 2019 Then as I told you. If you place a vehicle mod on an ID model then all vehicle with that ID model will change. You can't choose only one car to change. * There is No God but Allah discord: HassoN#2709 Visit my wiki profile: https://wiki.multitheftauto.com/wiki/User:Hassan_saad
JeViCo Posted July 21, 2019 Posted July 21, 2019 (edited) That's a quite complex task. You should add models via vehicle components and manage them in future however there might be a problem with active parts such as doors and wheels. You'll need additional scripts to make your custom wheels, doors trunks etc. Edited July 21, 2019 by JeViCo misspelled a word
JustinMTA Posted July 22, 2019 Posted July 22, 2019 I work with this every day, you need these to do it:https://wiki.multitheftauto.com/wiki/Vehicle_component_manipulationhttps://wiki.multitheftauto.com/wiki/SetVehicleComponentVisible I can do 3D vehicle/object mods and basic scripts from scratch, contact me for free help!! Skype/Discord/Telegram: [email protected] / Justin|X5|#0977 / @JustinX5 Xtreme 5 Gaming - COMING SOON! I'd love it if more people in MTA utilized these amazing features, so please ask me anything related to 3D modeling/basic scripting/etc. The expert knows more and more about less and less until they know everything about nothing.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now