Hiroszek Posted July 21, 2019 Share 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. Link to comment
Administrators Tut Posted July 21, 2019 Administrators Share 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. Link to comment
HassoN Posted July 21, 2019 Share 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. Link to comment
Hiroszek Posted July 21, 2019 Author Share Posted July 21, 2019 Can you show me a code to do this? I dont have any idea for this ;c Link to comment
HassoN Posted July 21, 2019 Share 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 Link to comment
Hiroszek Posted July 21, 2019 Author Share Posted July 21, 2019 Yes, but i mean a model not a car texture, with this i makes that Link to comment
HassoN Posted July 21, 2019 Share 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. Link to comment
JeViCo Posted July 21, 2019 Share 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 Link to comment
JustinMTA Posted July 22, 2019 Share 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 Link to comment
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