[Help code] AddReplaceTexture to Weapon pistol MK2

How replace texture of pistol MK2?

CODE:

RegisterCommand('txanim', function(source, args)
    local txd = CreateRuntimeTxd('duiTxd')
    local duiObj = CreateDui('https://giphy.com/gifs/goo-goop-goopy-3oz8xF2tbONaIIy92M/fullscreen', 600, 600)
    _G.duiObj = duiObj
    local dui = GetDuiHandle(duiObj)
    local tx = CreateRuntimeTextureFromDuiHandle(txd, 'duiTex', dui)
    AddReplaceTexture('WEAPON_PISTOL_MK2', 'COMPONENT_REVOLVER_MK2_CLIP_01', 'duiTxd', 'duiTex')
	AddReplaceTexture('WEAPON_PISTOL_MK2', 'COMPONENT_REVOLVER_MK2_CLIP_FMJ', 'duiTxd', 'duiTex')
	AddReplaceTexture('WEAPON_PISTOL_MK2', 'COMPONENT_AT_PI_COMP_03', 'duiTxd', 'duiTex')
end)