fivem icon indicating copy to clipboard operation
fivem copied to clipboard

feat(mono/redm): initial works for rdr

Open AvarianKnight opened this issue 9 months ago • 2 comments

Goal of this PR

Add same helper methods that FiveM has

How is this PR achieving the goal

Start implementing base classes for RedM.

This PR applies to the following area(s)

RedM, SCRT:C#

Successfully tested on

Game builds: 1491

Checklist

  • [x] Code compiles and has been tested successfully.
  • [x] Code explains itself well and/or is documented.
  • [x] My commit message explains what the changes do and what they are for.
  • [x] No extra compilation warnings are added by these changes.

Fixes issues

AvarianKnight avatar Apr 26 '24 08:04 AvarianKnight

This PR should be good to review.

The Goal of this PR is to implement some base classes for RedM to allow players who want to use it to get started.

Some of these methods were taken from the original FiveM classes, notably the Model class. Though this shouldn't have any have any int -> uint (or vice-versa) calls.

This was also why the Game.GenerateHash native is unique for RedM & FiveM.

This change set also introduces a UiFeed class so the user can generate feed messages, if wanted these changes can be pulled out to leave just the base classes being implemented.

AvarianKnight avatar Apr 27 '24 05:04 AvarianKnight

Some changes that were made:

Model implements IDisposable so it will properly SetModelAsNoLongerNeeded when the object goes out of scope

Vehicle has more stuff implemented

Given recent events I likely wont work on this anymore so anyone can feel free to continue this PR if it needs changes.

AvarianKnight avatar Jun 11 '24 05:06 AvarianKnight