Cant create multiple mp_mission_name_freemode Scaleform

local markerCoords = Config.markers[1].coords

local updateInterval = 2000
local nextUpdateTime = GetGameTimer() + updateInterval

Citizen.CreateThread(function()
    local scaleform = RequestScaleformMovie("mp_mission_name_freemode")
    while not HasScaleformMovieLoaded(scaleform) do
        Citizen.Wait(0)
    end

    while true do
        Citizen.Wait(0)
        local playerped = PlayerPedId()
        local coords = GetEntityCoords(playerped)
        local distance = Vdist2(coords.x, coords.y, coords.z, x, y, z)
        local camcoord = GetFinalRenderedCamRot(2)
        DrawScaleformMovie_3dNonAdditive(scaleform, markerCoords.x, markerCoords.y, markerCoords.z -1, camcoord.x, camcoord.y, camcoord.z, 1.0, 1.0, 1.0, 0, 0, 0, 2)

        if GetGameTimer() >= nextUpdateTime then
            BeginScaleformMovieMethod(scaleform, "SET_MISSION_INFO")
            PushScaleformMovieMethodParameterString("~bold~[E] Open Menu ")
            PushScaleformMovieMethodParameterString("~b~Free For All") 
            PushScaleformMovieMethodParameterString("")
            PushScaleformMovieMethodParameterString("")
            PushScaleformMovieMethodParameterString("~HUD_COLOUR_YELLOW~")
            PushScaleformMovieMethodParameterString("")
            PushScaleformMovieMethodParameterString("46")
            EndScaleformMovieMethod()
            nextUpdateTime = GetGameTimer() + updateInterval
        end
    end
end)
 
function DrawScaleformMovie_3dNonAdditive(scaleform, x, y, z, rx, ry, rz, scaleX, scaleY, scaleZ, p7, p8, p9, p10)
    DrawScaleformMovie_3dSolid(scaleform, x, y, z, rx, ry, rz, scaleX, scaleY, scaleZ, 2.0, 2.0, 2.0, p7, p8, p9, p10)
end

I have a script that creates a Scaleform like this, but when I try to create multiple scaleforms, they start flickering between the Scaleforms. I can’t figure out why this keeps happening. Can someone explain how I can fix this?