Skip to content

3D Car Menu v.1.0.1

Latest

Choose a tag to compare

@filipxcs filipxcs released this 25 Feb 21:50
perf(vehicle-menu): optimize pixel data updates and control handling

- Consolidate three separate NUI pixel update messages into one combined message
- Pre-cache bone indices to avoid repeated GetEntityBoneIndexByName calls
- Implement data change detection to avoid redundant NUI messages
- Extract control disabling logic into reusable function with lib.disableControls
- Restructure thread loops for better performance (4ms vs 0ms for controls, 15ms vs 0ms for pixel updates)
- Add centralized closeVehicleMenu function for consistent cleanup