Jump to content

engineImportTXDImage


Recommended Posts

  • MTA Team
Posted

Probably an okayish idea:

 image engineImportTXDImage(element TXD_Element, string filename)  

This could return an image for use in dxDrawImage and guiCreateImage. Maybe edit ...draw/create image for compatibility for the 'image item'

This could allow you to load specific images from a txd and import them for use as a viewable image (and not on a model)

What do you think about this idea?

Posted

i like it, sometimes drawing with dx and .png(only standard format that have transparency) causes problems, need alternative(not sure, does .dds work better, didn't test yet)

Posted

Yep! but I prefer replace a default GTA:SA TXD without having the file

for example

image engineImportPNGintoTXD(248, "248.png", "248hi") 

This would replace the skin 248, importing in the default GTA:SA the png "248.png", and importing it as name "248hi"

Posted
Yep! but I prefer replace a default GTA:SA TXD without having the file

for example

image engineImportPNGintoTXD(248, "248.png", "248hi") 

This would replace the skin 248, importing in the default GTA:SA the png "248.png", and importing it as name "248hi"

wont work that easy...

.txd have alpha mask, and its more like image archive, not image.

Posted

MTA SA 1.1 has client-side file functions, so scripting client-side image conversion is possible.

  • Recently Browsing   0 members

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