LemonUIbyLemon / LemonUI

LemonUI for .NET (FiveM, RageMP, RagePluginHook and ScriptHookVDotNet 3)
MIT License
177 stars 40 forks source link

RageMP doesn't passes the handle for DrawScaleformMovieFullscreen and others #91

Closed TheOfficialDroid closed 1 year ago

TheOfficialDroid commented 2 years ago

BaseScaleform uses incorrect native parameters; Consider replacing with RAGE.Game.Graphics

RAGE.Game.Graphics.RequestScaleformMovie RAGE.Game.Graphics.CallScaleformMovieMethod - Begin RAGE.Game.Graphics.PopScaleformMovieFunctionVoid End (VOID) RAGE.Game.Graphics.PopScaleformMovieFunction End (int)

For whatever reason, you're calling the draw function without a referenced handle returned from the Engine; Thus nothing will ever be drawn for anyone using this within RageMP (see below)

Invoker.Invoke(0x0DF606929C105BE1, 255, 255, 255, 255, 0)

void DrawScaleformMovieFullscreen(int scaleform, int red, int green, int blue, int alpha, int unk); Thus should be Invoker.Invoke(0x0DF606929C105BE1, Handle, 255, 255, 255, 255, 0)