Jump to content

[BUG] Why the texture disappears from tunable car mods?!


Turbesz

Recommended Posts

If i add a tuneable car to my server, the car texture is white... Wth?! How can i fix this?

This is the load code: 

    function replaceModel()
local txd



txd = engineLoadTXD("f90/sultan.txd", 560 )
engineImportTXD(txd,560 )
dff = engineLoadDFF("f90/sultan.dff",560 )
engineReplaceModel(dff,560 )   

dff = engineLoadDFF("f90/exh_a_s.dff",1028 )
engineReplaceModel(dff, 1028)   
dff = engineLoadDFF("f90/exh_c_s.dff", 1029)
engineReplaceModel(dff,1029 )   
dff = engineLoadDFF("f90/fbmp_a_s.dff", 1169)
engineReplaceModel(dff, 1169)   
dff = engineLoadDFF("f90/fbmp_c_s.dff", 1170)
engineReplaceModel(dff, 1170)   
dff = engineLoadDFF("f90/rbmp_a_s.dff",1141 )
engineReplaceModel(dff,1141 )   
dff = engineLoadDFF("f90/rbmp_c_s.dff",1140 )
engineReplaceModel(dff,1140)   
dff = engineLoadDFF("f90/rf_a_s.dff",1032 )
engineReplaceModel(dff,1032 )   
dff = engineLoadDFF("f90/rf_c_s.dff",1033 )
engineReplaceModel(dff, 1033)   
dff = engineLoadDFF("f90/spl_a_s_b.dff", 1138)
engineReplaceModel(dff, 1138)   
dff = engineLoadDFF("f90/spl_c_s_b.dff",1139 )
engineReplaceModel(dff, 1139)   
dff = engineLoadDFF("f90/wg_l_a_s.dff", 1026)
engineReplaceModel(dff, 1026)   
dff = engineLoadDFF("f90/wg_l_c_s.dff",1031 )
engineReplaceModel(dff,1031 )   
dff = engineLoadDFF("f90/wg_r_a_s.dff",1027 )
engineReplaceModel(dff,1027 )   
dff = engineLoadDFF("f90/wg_r_c_s.dff",1030 )
engineReplaceModel(dff, 1030)   

-------

txd = engineLoadTXD("astonmartin/uranus.txd", 558 )
engineImportTXD(txd,558 )
dff = engineLoadDFF("astonmartin/uranus.dff", 558)
engineReplaceModel(dff,558 )  

dff = engineLoadDFF("astonmartin/exh_a_u.dff", 1092 )
engineReplaceModel(dff,1092 )  
dff = engineLoadDFF("astonmartin/exh_c_u.dff", 1089)
engineReplaceModel(dff, 1089)  
dff = engineLoadDFF("astonmartin/fbmp_a_u.dff", 1166)
engineReplaceModel(dff,1166 )  
dff = engineLoadDFF("astonmartin/fbmp_c_u.dff", 1165)
engineReplaceModel(dff, 1165)  
dff = engineLoadDFF("astonmartin/rbmp_a_u.dff", 1168)
engineReplaceModel(dff, 1168)  
dff = engineLoadDFF("astonmartin/rbmp_c_u.dff",1167 )
engineReplaceModel(dff,1167 )  
dff = engineLoadDFF("astonmartin/rf_a_u.dff", 1088)
engineReplaceModel(dff,1088 )  
dff = engineLoadDFF("astonmartin/rf_c_u.dff", 1091)
engineReplaceModel(dff, 1091)  
dff = engineLoadDFF("astonmartin/spl_a_u_b.dff",1164 )
engineReplaceModel(dff,1164 )  
dff = engineLoadDFF("astonmartin/spl_c_u_b.dff",1163 )
engineReplaceModel(dff,1163 )  
dff = engineLoadDFF("astonmartin/wg_l_a_u.dff", 1090)
engineReplaceModel(dff, 1090)  
dff = engineLoadDFF("astonmartin/wg_l_c_u.dff",1093 )
engineReplaceModel(dff,1093 )  
dff = engineLoadDFF("astonmartin/wg_r_a_u.dff",1094 )
engineReplaceModel(dff,1094 )  
dff = engineLoadDFF("astonmartin/wg_r_c_u.dff",1095 )
engineReplaceModel(dff,1095 )  

end
    addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel)
     
    addCommandHandler ( "reloadcar", replaceModel )

Sometimes a mta restart fix this, but if i restart the script then again not good...

Link to post

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