LemonUIbyLemon / LemonUI

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

Big Message weapon purchased crash #54

Closed I-E-A-I-A-I-O closed 2 years ago

I-E-A-I-A-I-O commented 2 years ago

I get this error when trying to use the Big Message scaleform:

System.ArgumentException: Unexpected argument type UInt32. Parameter name: parameters at LemonUI.Scaleform.BaseScaleform.CallFunctionBase(String function, Object[] parameters) at LemonUI.Scaleform.BaseScaleform.CallFunction(String function, Object[] parameters) at LemonUI.Scaleform.BigMessage..ctor(String title, String weapon, WeaponHash hash)

It happens when this line gets executed:

https://i.imgur.com/2J0yTYd.png

justalemon commented 2 years ago

This happens because we don't have an entry for unsigned integers in CallFunctionBase. This affects all scaleforms that pass unsigned integers for them to work.

https://github.com/justalemon/LemonUI/blob/7132abddf5ea76266d3bdb84f048e285b784f46c/LemonUI/Scaleform/BaseScaleform.cs#L109-L181