Help AddReplaceTexture

As the new update was introduced I’m hyped for AddReplaceTexture command, the capabilities to introduce animated gifs and texture from web pages is very good, but I don’t get how to use it…

AddReplaceTexture(
	origTxd: string, 
	origTxn: string, 
	newTxd: string, 
	newTxn: string
);
1 Like
local txd = CreateRuntimeTxd('duiTxd')
local duiObj = CreateDui('http://i.imgur.com/bvhD7sq.gif', 640, 360)
_G.duiObj = duiObj
local dui = GetDuiHandle(duiObj)
local tx = CreateRuntimeTextureFromDuiHandle(txd, 'duiTex', dui)
AddReplaceTexture('mp_m_freemode_01_mp_m_stunt_01\\jbib_diff_005_a_uni', 'uppr_diff_000_a_uni', 'duiTxd', 'duiTex')

This is how I do it most of the time, seems pretty straight-forward.

8 Likes

what cloth is this one? can you share screenshot?

Сan you share the resource folder? I tried using your code, but it doesn’t work

idk I can’t remember right now, I think it’s that weird puffy jacket

if you can’t get it to work, you did something wrong

1 Like

Yes, that’s why I’m asking for help

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.