Scaleform messages only show a number

Hello.

I ran into a weird issue which i think is related to scaleforms and NativeUI. But no matter how much i look into it, i can’t get it fixed.

I am using a script where you need to drive a truck to a location to receive fuel and then drive the truck back to deliver it.
When receiving the fuel and when delivering it, a message should pop up.

function showScaleform(title, desc, sec)
	function Initialize(scaleform)
		local scaleform = RequestScaleformMovie(scaleform)

		while not HasScaleformMovieLoaded(scaleform) do
			Citizen.Wait(0)
		end
		PushScaleformMovieFunction(scaleform, "SHOW_SHARD_WASTED_MP_MESSAGE")
		PushScaleformMovieFunctionParameterString(title)
		PushScaleformMovieFunctionParameterString(desc)
		PopScaleformMovieFunctionVoid()
		return scaleform
	end
	scaleform = Initialize("mp_big_message_freemode")
	while sec > 0 do
		sec = sec - 0.02
		Citizen.Wait(0)
		DrawScaleformMovieFullscreen(scaleform, 255, 255, 255, 255, 0)
	end
	SetScaleformMovieAsNoLongerNeeded(scaleform)
end

However the screen does not show a text but only the number 5.

I had the same issue with other scripts (esx_weaponshop for instance when buying a weapon).

I assume that there has to be either an issue with the nativeUI or with Scaleform.lua but no matter how hard i try, i can’t figure out what’s causing this issue.
Updating/Replacing NativeUI or Scaleform.lua didn’t help. Trying to use NativeUIReloaded did neither.

Has anybody else encountered an issue like this?