Skip to content

Secondary color does not save on vehicles without primary colors #536

@blackfirefly000

Description

@blackfirefly000

Describe the bug
Some vehicles are not set up by the vehicle dev correctly, and do not have a paint/material set for the primary color. Instead, the paint/material is set for the secondary color. When this is the case, saving the vehicle with the secondary color set saves as a default black/gray color instead of the correct color set before saving. This issue is not present for vehicles with both primary and secondary colors.

To Reproduce
Steps to reproduce the behavior:

  1. Add a car to your server that does not have a primary color/paint is dictated by secondary color
  2. Change secondary color
  3. Save the car
  4. Spawn saved car
  5. See that the spawned secondary color is black, not what it set to before saving

Expected behavior

  1. Add a car to your server that does not have a primary color/paint is dictated by secondary color
  2. Change secondary color
  3. Save the car
  4. Spawn saved car
  5. See that the spawned secondary color is what it was set to before saving

vMenu Info:

  • vMenu Version: 3.8.2
  • Do you have access to the files? Yes
  • FXServer artifacts version: 21314

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidInvalid pull request or issue.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions