manups4e / ScaleformUI

ScaleformUI is a GTA menu styled API made with custom Scaleforms to be lighter, faster and visually better
Other
146 stars 49 forks source link

[bug] Warning not displaying texts #112

Closed nicxes closed 1 year ago

nicxes commented 1 year ago

Im having issues to create a simple warning, any idea if im doing something wrong?

RegisterCommand('warning', function()
    ScaleformUI.Scaleforms.Warning:ShowWarning("This is the title", "This is the subtitle", "This is the prompt.. you have 6 seconds left", "This is the error message, ScaleformUI Ver. 3.0")
end)

Result:

image

manups4e commented 1 year ago

Thanks for choosing ScaleformUI 😄 I'll make sure to check it asap!

manups4e commented 1 year ago

the scaleform is working correctly image you didn't add a parameter at the end... you're missing the warningType parameter (it can be 0 or 1, usually is always 0) try using

ScaleformUI.Scaleforms.Warning:ShowWarning("This is the title", "This is the subtitle", "This is the prompt.. you have 6 seconds left", "This is the error message, ScaleformUI Ver. 3.0", 0)

I hope this helped you 😄