Hello
I want to create a custom Texture and it is working fine on first try, but after that , it will not work at all
BUT
this is the code i write :
function createTexture(textureDict, textureName, url)
local txd = CreateRuntimeTxd(textureDict)
local duiObj = CreateDui(url, 250, 200)
local dui = GetDuiHandle(duiObj)
return CreateRuntimeTextureFromDuiHandle(txd, textureName, dui)
-- return CreateRuntimeTextureFromImage(txd, textureName, 'shared/logo.jpg')
end
-- create SHV Texture to use for notification
texture = createTexture(
'SHV_LOGO',
'Exacute',
'https://cdn.discordapp.com/attachments/622707617101250561/848896285313728512/SHV3.jpg'
)
tried both from Dui handler and from Image
this is how i show it :
RegisterCommand('test', function()
AddTextEntry('SHV_V2:ATE:notification', 'testing text '..tostring(math.random(1,10)))
BeginTextCommandThefeedPost('SHV_V2:ATE:notification')
EndTextCommandThefeedPostMessagetext('SHV_LOGO', 'Exacute', true, 4, 'TITLE', 'SUBTITLE')
end)
when i use createTexture
function and register the texture
it will work as intended :
but as soon as the notification is finished (and is no longer on the screen), if you try to use the same show notification function , it will not show the texture :
also , i tried to check with HasStreamedTextureDictLoaded
and it shows as loaded, i really dont know what is wrong here
i would appreciate any help
thank you