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.47k stars 2.05k forks source link

feat(scripting/lua): redm oal natives #2481

Closed Ehbw closed 3 months ago

Ehbw commented 4 months ago

Goal of this PR

Introduces faster OAL natives for RedM when using use_experimental_fxv2_oal true on the Lua 5.4 ScRT

How is this PR achieving the goal

By including the NativesRDR.h header file that is compiled and copied into citizen-scripting-lua/src.

This PR applies to the following area(s)

RedM, ScRT: Lua

Successfully tested on

Game builds: 1491.18

Platforms: Windows

Tested with scripts utilising Lua 5.3, MonoV1, JS and Lua 5.4 (without OAL) ScRT's. With all behaving as intended

Checklist

Disquse commented 3 months ago

Tested a bit, seems to be working as intended. Those are disabled by default anyway, so it's good to go. Please report if there would be any issues.