Jump to content

[Help] Removing images from textures


kieran

Recommended Posts

Posted

Hello, first time I have ever tried replacing textures and editing txd files, so I will sound like a complete noob...

I wan to edit the elecfence_BAR.txd texture and remove the little yellow sign, so I simply opened the texture, deleted the yellow sign, and then I called the txd as a file in meta as you would if you were loading an image into a script...  But it's still there. :/

Can someone give me a quick run through of how you'd remove an image and load the txd in? 

By the way, here's my code.

--electric fence
addEventHandler ( "onClientResourceStart", getResourceRootElement ( getThisResource() ),
	function ()
	txd = engineLoadTXD ( "elecfence_bar.txd" )
	engineImportTXD ( txd, 987 )
end
)

Is it because file name is the same as default?  Thanks for any input or advice :)

 

 

Posted (edited)

Have you checked if you saved the file? Also, try removing the "onClientResourceStart" event and function, and just use it in the root of the file.

txd = engineLoadTXD ( "elecfence_bar.txd" )
engineImportTXD ( txd, 987 )

PD: These kinds of topics have to go to the "scripting" section, not here.

Edited by MadnessReloaded
  • Thanks 1

tJ5zeFm.gif

Proud owner and developer of ZNEXT: Aftermath.

Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience.

Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. 

Español, Pусский, Türk, عربى, Polski, Português

IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB

Posted
On 1/26/2018 at 11:27, MadnessReloaded said:

Have you checked if you saved the file? Also, try removing the "onClientResourceStart" event and function, and just use it in the root of the file.


txd = engineLoadTXD ( "elecfence_bar.txd" )
engineImportTXD ( txd, 987 )

PD: These kinds of topics have to go to the "scripting" section, not here.

Thanks, I thought since it was mapping related people wouldn't like it in scripting since it's just me deleting an image on txde and exporting it....  So was a little unsure, but thank you for this, I will try it, and if I have any problems I'll post in scripting. :P

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...