Simple Trainer won't show up

Hi
after updating the server and switching to build 2372, the simple trainer does not show up, it is loaded, but unfortunately I can’t open it, anyone has an idea what to do?
image

2 Likes

Have you found a fix by chance? I am having the same issue

1 Like

.asi plugins now have to explicitly say they support newer gamebuilds:

This change was added a few days ago:

It’s possible to add this to an existing .asi without recompiling it, though. You need to create a Windows resource script (.rc) file with the following content:

FX_ASI_BUILD 2189 dummy.txt
FX_ASI_BUILD 2372 dummy.txt

Also create an empty dummy.txt file, which is just to get it to compile.

Next, compile the .rc file with rc.exe:

> rc.exe fx_asi_build.rc

This will produce a Windows resource file (.res).

Finally, use a Windows resource editor to add the .res file to the .asi file. The one I used is Resource Hacker.

Here is a compiled resource file with the definitions for 2189 and 2372:
fx_asi_build.res (144 Bytes)

And this is a demonstration of adding this to the .asi plugin with the resource editor:

All of this said, it would be a much better idea for the maintainers of these plugins to update and test their plugins on newer gamebuilds on FiveM. Menyoo, for example, has some issues that cause crashes on newer gamebuilds. This method in no way addresses those issues, but if you just want the same plugins to work on 2189 and 2372, crashes and all, this is a solution.

11 Likes

That’s worked, thank you :slight_smile:

For authors of these plugins, here is a quick example of using Windows resource scripts:

// Menyoo.rc

// FiveM
FX_ASI_BUILD 2189
BEGIN
	"\0"
END

FX_ASI_BUILD 2372
BEGIN
	"\0"
END

Continuing with Menyoo as an example, it is also possible to include versioning information in the library:

// Menyoo Header
#include "macros.h"

1 VERSIONINFO
  FILEVERSION    1,4,0,0 // MENYOO_CURRENT_VER_
  PRODUCTVERSION 1,4,0,0 // MENYOO_CURRENT_VER_
  FILEFLAGSMASK  VS_FFI_FILEFLAGSMASK
#if defined(_DEBUG)
  FILEFLAGS 1
#else
  FILEFLAGS 0
#endif
  FILEOS      VOS__WINDOWS32
  FILETYPE    VFT_DLL
  FILESUBTYPE 0
BEGIN
  BLOCK "StringFileInfo"
  BEGIN
    BLOCK "040904b0"
    BEGIN
      VALUE "FileDescription", "Menyoo\0"
      VALUE "FileVersion", MENYOO_CURRENT_VER_ "\0"
      VALUE "InternalName", "Menyoo.asi\0"
      VALUE "OriginalFilename", "Menyoo.asi\0"
      VALUE "ProductName", "Trainer for Grand Theft Auto V (single-player)\0"
      VALUE "ProductVersion", MENYOO_CURRENT_VER_ "\0"
      VALUE "Comments", "https://github.com/MAFINS/MenyooSP\0"
    END
  END
  BLOCK "VarFileInfo"
  BEGIN
    VALUE "Translation", 0x0409, 1252
  END
END
3 Likes

You Saving Lives out hea

1 Like

i am so lost… i got 3 plugins, simple trainer, menyoo, and no rockstar restrictions and im so lost on how to fix this

1 Like

Menyoo has been updated and works on FiveM:

1 Like

Do you know how I can fix the other 2?

1 Like

Sorry lol I’m just confused on how to change it myself

1 Like
  1. Download the fx_asi_build.res file I attached to my original reply.
  2. Install the Resource Hacker program.
  3. Open Resource Hacker and click the open button.
  4. In the drop-down at the bottom-right of the file selection dialog, select “All files”.
  5. Find the .asi plugin you want to patch, select it, and click “Open”.
  6. Click “Actions” on the menu bar, and choose “Add from a Resource file”.
  7. Find the fx_asi_buid.res file you downloaded, select it, and click “Open”.
  8. In the “Import Resources” window, click “Check/Uncheck All” to check all of the items.
  9. Click “Import”.
  10. Click the save button.
  11. Close Resource Hacker.
  12. Remove the *_original.asi file that Resource Hacker creates in the same directory as the .asi plugin you selected. It’s a backup of how it was before patching it, but if you leave it in the plugins folder, FiveM will try and load it as a plugin.

Steps 3 thru 10 are what are demonstrated in the video in my original reply.

7 Likes

Thank you a million, this resolved many ASI’s issues that I had and allowed me to continue working on a project.

1 Like

Hey. I can’t figure out how to compile the .rc file with rc.exe. Could you put out an updated fx_asi_build.res with build 2545?

1 Like

This should do the trick
fx_asi_build.res (200 Bytes)

4 Likes

It’s a Christmas miracle. Thank you so much!!!

3 Likes

Thannks!! :pray:

1 Like

please do to + set sv_enforceGameBuild 2545

1 Like

please do to + set sv_enforceGameBuild 2545

Edit:
I looked at the answer above and still can’t get Menyoo to work to + set sv_enforceGameBuild 2545

it has to be placed in the plugins folder… You still need to wait for menyoo to be updated to add props, peds, etc etc.

Menyoo.asi (3.1 MB)

@DeadpoolBryan

1 Like

ok thank you