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
Xinerki
February 8, 2020, 12:23pm
2
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
Xinerki
February 11, 2020, 7:06pm
5
idk I can’t remember right now, I think it’s that weird puffy jacket
Xinerki
February 11, 2020, 7:07pm
6
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
system
Closed
March 18, 2020, 6:17pm
9
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.