Skip to content

Conversation

ArranTuna
Copy link
Collaborator

Some objects are double sided by default, so SetDoubleSided must be called for them if you want it to be false.

Fixes: multitheftauto/mtasa-resources#230

To reproduce:
start editor
Add object 3851
Make sure doublesided = false
Save the map
Open the map
Notice it now says doublesided = true

crun isElementDoubledSided(getElementsByType("object")[1]) -- returns true
srun isElementDoubledSided(getElementsByType("object")[1]) -- returns false

PR fixes this desync. I guess this object is doublesided by default, and the object sync would only set true, never false.

Some objects are double sided by default, so SetDoubleSided must be called for them if you want it to be false.
@FileEX FileEX merged commit c71577b into multitheftauto:master Sep 23, 2025
7 of 8 checks passed
@FileEX FileEX added this to the 1.7.1 milestone Sep 23, 2025
MTABot pushed a commit that referenced this pull request Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Solution to a bug of any kind sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MTA Map Editor Object Issue
4 participants