[Scaleform] Anyone knows how to use MISSION_COMPLETE correctly?

Im having issues with the MISSION_COMPLETE scaleform and DRAW_MENU_LIST.
List elements overflow at the bottom and I have no clue what to do due to lacking docs.

Take a look at the last element which is cutoff/overflown.
image

Script (not the same as in the image):

    local scaleform = RequestScaleformMovie("MISSION_COMPLETE")
    while not HasScaleformMovieLoaded(extrasScaleform) do Citizen.Wait(0) end

    PushScaleformMovieFunction(scaleform, "SET_MISSION_TITLE")
    PushScaleformMovieFunctionParameterString("")
    PushScaleformMovieFunctionParameterString("Some title")
    PopScaleformMovieFunctionVoid()

    for i = 1, 12 do
        PushScaleformMovieFunction(scaleform, "SET_DATA_SLOT")
        PushScaleformMovieFunctionParameterInt(i - 1)
        PushScaleformMovieFunctionParameterInt(0)
        PushScaleformMovieFunctionParameterString(string.format("ELEM %s", i))
        PopScaleformMovieFunctionVoid()
    end

    PushScaleformMovieFunction(scaleform, "DRAW_MENU_LIST")
    PopScaleformMovieFunctionVoid()

I was wondering if clampText(textF, labelS, maxVal) (found here) would solve this but I have no clue what parameters are necessary to make this work if this even helps.

It would be greatly appreciated if someone could help me out with this :slight_smile:

List elements overflow at the bottom and I have no clue what to do due to lacking docs.

Some scaleforms, including this one afaik, are hard-coded when it comes to dimensions.

I was wondering if clampText(textF, labelS, maxVal) (found here) would solve this but I have no clue what parameters are necessary to make this work if this even helps.

Most likely not. Keep in mind that Vespura’s list also includes internal functions that the scaleform uses. Usually those are the the functions that are not written in CAPS, (soo… clampText)

Your best bet is to make the UI yourself, either with DrawRect() & DrawText(), or with NUI, ooooorrrr you could make your own scaleform