ox_lib icon indicating copy to clipboard operation
ox_lib copied to clipboard

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

Open hamcoremusic opened this issue 1 year ago • 1 comments

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 avatar Jun 18 '24 16:06 hamcoremusic