Jump to content

[RESOLVED] Mods texture


Niasio

Recommended Posts

Hello,

I create my Rp server on MTA and I want to add some vehicles mods or skin with my script. But, the texture don't load and it create a "white" texture.

http://img4.hostingpics.net/pics/276436mtascreen20160731193726.png

The script code:

  
function applyMods() 
    vbfypro = engineLoadDFF ( "vbfypro.dff", 245) 
    engineReplaceModel ( vbfypro, 245) 
       
    vbfypro = engineLoadTXD ( "vbfypro.txd" ) 
    engineImportTXD ( vbfypro, 245 )     
         
    test = engineLoadDFF ( "sentinel.dff", 405) 
    engineReplaceModel ( test, 405) 
       
    test2 = engineLoadTXD ( "sentinel.txd" ) 
    engineImportTXD ( test2, 405 )   
     
    claude = engineLoadDFF ( "claude.dff", 124) 
    engineReplaceModel ( claude, 124) 
       
    claude2 = engineLoadTXD ( "claude.txd" ) 
    engineImportTXD ( claude2, 124 )     
     
    skin9 = engineLoadTXD("mods/skins/9/wfyst.txd") 
    engineImportTXD(skin9, 9)    
end 
addEventHandler("onClientResourceStart", getResourceRootElement(), applyMods) 
  

Have a good day,

Niasio ;)

Edited by Guest
Link to comment

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...