Skip to content

Fix Get/Set WindowsParameters being inverted compared to everything else#422

Closed
EvilShadeZ wants to merge 5 commits intoikkentim:masterfrom
EvilShadeZ:master
Closed

Fix Get/Set WindowsParameters being inverted compared to everything else#422
EvilShadeZ wants to merge 5 commits intoikkentim:masterfrom
EvilShadeZ:master

Conversation

@EvilShadeZ
Copy link
Copy Markdown

For some reason, the parameters for Windows are inverted compared to everything else. By default these are the values: -1 (Unset) 0 (Closed/Off) 1 (On / Open)
For vehicle windows, they are: -1 (Unset) 0 (Open) 1(Closed). This behaviour is making VehicleParameterValue enum work not as intended. I've added some checks and inverted them.

For some reason, the parameters for Windows are inverted compared to everything else. By default these are the values: -1 (Unset) 0 (Closed/Off) 1 (On / Open)
For vehicle windows, they are: -1 (Unset) 0 (Open) 1(Closed). This behaviour is making VehicleParameterValue work not as intended. I've added some checks to invert them.
@EvilShadeZ EvilShadeZ closed this Nov 15, 2022
@EvilShadeZ EvilShadeZ reopened this Nov 15, 2022
@ikkentim
Copy link
Copy Markdown
Owner

Closing this. We'll try and do it better in the open.mp port.

@ikkentim ikkentim closed this Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants