Jump to content

how does vehicle variants works ?


Sowban

Recommended Posts

  • Administrators
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

  • Like 1
Link to comment
  • Administrators
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

  • Thanks 1
Link to comment

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

  • Like 2
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...