Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Setting paintType1/paintType2 with vehicleProperties does not work with custom colors #598

Open
hamcoremusic opened this issue Jun 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@hamcoremusic
Copy link

Describe the bug
Currently I am trying to set a custom color matte on a vehicle, however no matter what I put into the paintType1/2 setting it doesn't change anything.

To Reproduce
Steps to reproduce the behavior:

  1. Use the ox_lib:setVehicleProperties with this table
        model = 1934384720,
        dirtLevel = 0,
        plateIndex = 1,
        modSmokeEnabled = true,
        wheels = 1,
        modFrame = 0,
        modSpoilers = 2,
        modFender = 2,
        modRoof = 0,
        wheelColor = 0,
        paintType1 = 3,
        paintType2 = 3,
        tyreSmokeColor = {0, 175, 218, },
        modFrontBumper = 2,
        color1 = {0, 175, 218, },
        color2 = {0, 175, 218, },
  1. Use something to set it while in car
  2. The paint RGB changes, but it is not matte color type

Expected behavior
After setting the paint index to 3 I would expect that the custom color RGB would be changed to a matte paint type. It just sets it to 0 as far as I am seeing.

@hamcoremusic hamcoremusic added the bug Something isn't working label Jun 18, 2024
@hamcoremusic
Copy link
Author

hamcoremusic commented Jun 18, 2024

Additionally, if you set the car to a matte color ID (ex. 131) first via color1 or any color menu, it will then custom color the matte when you run just the RGB color1/color2 values above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant