[Project] FiveM to RedM wrapper

FiveM to RedM natives wrapper.

The goal of this project is to create a complete and working lua wrapper to be able to import FiveM scripts and gamemodes to RedM without having to make any modifications. We aim to bring a perfect compatibility and translate all different sub-systems between the two games. For instance, adapting the FiveM clothes/components systems to RedM or even how notifications work as these were highly modified.

Links

  • FiveM is a singleplayer/multiplayer modification framework for GTA V.
  • RedM is a singleplayer/multiplayer modification framework for RDR2.

Documentations

Natives documentations are made by the modding community.

  • GTA V native reference.
  • RDR2 native reference.

Project / Download

Showcase


A brief example of a FiveM gamemode ‘working’ in RedM - A few things are not pushed yet :slight_smile:
5 Likes

Cute concept! I recall an idea back in the day for having compatibility across IV/V as well, but that fizzled along with the existence of IV mods.

I wonder - given a large amount of undocumented or barely-documented calls, how are you intending to abstract behavior differences, like e.g. GetPlayerPed -1 needing to be 0xFF in RDR3 as it’s an 8-bit number now?

Currently the wrapper override GetPlayerPed to invoke PlayerPedId if the pedId is -1
I did not know about 0xFF it might be better to use it instead of invoking PlayerPedId yeah

The idea is firstly to provide something to directly import a script/gamemode so some already ‘existing’ natives might be overridden to work like V if it is necessary.
Non-existing native equivalent would be kept and mark as ‘deprecated’ to again ensure compatibility

1 Like

Would it be possible to do it the other way around as well, so redm scripts can be used on fivem on the esx framework for example?