local splashText = SplashTextInstance.New();
splashText:Load():next(function()
splashText:SetLabel("Hello World!", 300.0, 255, 255, 255, 255, true);
end, function(err) print("Error: " .. err) end);
local count = 0;
local counter = 0;
CreateThread(function()
while true do
Wait(0);
HideHudComponentThisFrame(14);
SetScriptGfxDrawOrder(1);
splashText:Draw();
if count > 300 then
splashText:SetLabel("Hello World! " .. tostring(counter), 300.0, 255, 255, 255, 255, true);
splashText:TransitionIn(300);
count = 0
counter = counter + 1;
end
count = count + 1;
if IsControlJustPressed(0, 38) then -- E
splashText:TransitionIn();
end
if IsControlJustPressed(0, 23) then -- F
splashText:TransitionOut(300);
end
end
end)
Example;