overextended / ox_lib

A FiveM resource and script library for Lua and JS.
https://overextended.dev/ox_lib
GNU Lesser General Public License v3.0
282 stars 378 forks source link

Allow explicit rotation order for Progress props #564

Closed xhorntail closed 1 month ago

xhorntail commented 2 months ago

As the rotation order varies wildly across community scripts, and Rockstar usually uses order 2, allowing overrides here is important for compatibility when updating legacy resources.

From a personal perspective, order 0 is kinda just a pain in the ass to use. The X and Z axes have to be manipulated in inverse to each other to produce meaningful rotation. There is also an inversion zone, which causes unexpected shifting at some points of X/Z crossover. Order 1, as well as some others, are much more friendly to work with.