Closed
Description
Describe the bug
Since the last update, buildings are being created at reversed coordinates from those entered (X/RX is swapped with Z/RZ). The same issue affects getElementsWithinRange, which returns elements at a different position than the one provided. It's most likely broken by the "Fix CVector optional arguments - #3738 (#3782)" update.
Steps to reproduce
- run
building = createBuilding(6295,10,20,30,0,0,90);
iprint("position",getElementPosition(building));
iprint("rotation",getElementRotation(building))
- Look at result
Version
Multi Theft Auto v1.6-release-22837
Additional context
Relevant log output
"position" 30 20 10
"rotation" 90 0 0
Security Policy
- I have read and understood the Security Policy and this issue is not security related.