Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Conversation

jag3dagster
Copy link
Collaborator

Paint type appears to be overridden / ignored depending on what value is passed in for color. By passing in the default 0, paint type should be respected once the custom rgb is applied.

Resolves #598

Paint type appears to be overridden / ignored depending on what value is passed in for color. By passing in the default `0`, paint type should be respected once the custom rgb is applied.
@@ -348,7 +348,7 @@ function lib.setVehicleProperties(vehicle, props, fixVehicle)
ClearVehicleCustomPrimaryColour(vehicle)
SetVehicleColours(vehicle, props.color1 --[[@as number]], colorSecondary --[[@as number]])
else
if props.paintType1 then SetVehicleModColor_1(vehicle, props.paintType1, colorPrimary, pearlescentColor) end
if props.paintType1 then SetVehicleModColor_1(vehicle, props.paintType1, 0, props.pearlescentColor or pearlescentColor) end
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potentially will want to actually have the pearl bit be props.pearlescentColor or 0 for a similar reason, but I didn't test that portion too deeply.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll be pushing a new release soon, so let me know if there are other changes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm away from my pc right now. But I'd recommend the change i mentioned in my other comment if you want to make it before taking the pr

@jag3dagster
Copy link
Collaborator Author

@thelindat Updated. Should be good to go now

@thelindat thelindat merged commit 648a13f into overextended:master Jan 29, 2025
@jag3dagster jag3dagster deleted the fix-paint-type branch January 29, 2025 07:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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