Sowban Posted May 19, 2022 Share Posted May 19, 2022 Hi friends I have a question about how to use vehicle variant in createVehicle() example : vehicle name : romero | vehicle id : 442 | variants : coffins: 0 = brown style1, 1 = Black Style2, 2 = Brown Style3 [ref] thank you Link to comment
-ffs-PLASMA Posted May 19, 2022 Share Posted May 19, 2022 Use https://wiki.multitheftauto.com/wiki/SetVehicleVariant on the created vehicle and pass the desired arguments. 1 Link to comment
FernandoMTA Posted May 19, 2022 Share Posted May 19, 2022 Hey taking advantage of this thread to ask a question xD: Has anyone tried adding more than 5 variants to a vehicle model? The wiki says you can have extra1, extra2, extra3, extra4 or extra5, but would extra6 ... work? 1 Link to comment
Administrators Tut Posted May 19, 2022 Administrators Share Posted May 19, 2022 16 minutes ago, FernandoMTA said: Hey taking advantage of this thread to ask a question xD: Has anyone tried adding more than 5 variants to a vehicle model? The wiki says you can have extra1, extra2, extra3, extra4 or extra5, but would extra6 ... work? I believe the limit is extra1 through extra6 - I have tried adding extra7, and it would not spawn This could help you create a custom variant system 1 Link to comment
FernandoMTA Posted May 19, 2022 Share Posted May 19, 2022 3 hours ago, Tut said: I believe the limit is extra1 through extra6 - I have tried adding extra7, and it would not spawn This could help you create a custom variant system Oh nice, you add as many vehicle components as you want right? 1 Link to comment
Administrators Tut Posted May 19, 2022 Administrators Share Posted May 19, 2022 28 minutes ago, FernandoMTA said: Oh nice, you add as many vehicle components as you want right? That is correct, although be cautious with just how many you add, as each component adds more draw calls which requires more CPU processing time 1 Link to comment
Hydra Posted May 20, 2022 Share Posted May 20, 2022 If you want more vehicle parts just don't use vehicle variants and use setVehicleComponentVisible instead. You can make how many parts you want for a car and when you start the resource use setVehicleComponentVisible(vehicle, theComponent(from the chassis only), state(false/true)) and use ElementStreamIn functions to sync the car parts for everyone 2 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