citizenfx / fivem

The source code for the Cfx.re modification frameworks, such as FiveM, RedM and LibertyM, as well as FXServer.
https://cfx.re/
3.52k stars 2.07k forks source link

Workaround for ped component expression mods limit in FiveM #2579

Closed Disquse closed 3 months ago

Disquse commented 3 months ago

Goal of this PR

This PR aims to fix a bug where 32-bit component indices were clamped to 8 bits in ped component expression mods related functions, which was breaking expression mods on components with indices greater than 255.

How is this PR achieving the goal

This goal is achieved by patching certain functions to prevent them from clamping component indices to 8 bits.

This PR applies to the following area(s)

FiveM

Successfully tested on

Game builds: 1604, 2060, 2189, 2372, 2545, 2612, 2699, 2802, 2944, 3095

Platforms: Windows

Checklist

Fixes issues

Addresses the problem reported in this forum topic: https://forum.cfx.re/t/increase-255-limit-for-ped-heel-height/5229225