Jump to content

[HELP] TXD DONT LOAD


bebo1king

Recommended Posts

Posted

Hello , i am having bug when i start my resource Which Contain TXD files + DFF files + COL files,

The bug is when i start the Resource that what happen

14419534891.png"http://www.up-00.com/"

TXD NOT LOAD!!

And after 20-30 Restart Thats what happen

144195348922.png"http://www.up-00.com/"

TXD LOADED!!

No Error in debug

Codes:

function onResourceStart() 
  
  
col_floors19 = engineLoadCOL ( "green_slab.col" ) 
engineReplaceCOL ( col_floors19 ,2284) 
txd_floors19 = engineLoadDFF ( "green_slab.dff" ) 
engineReplaceModel  ( txd_floors19, 2284 ) 
txd_floors19= engineLoadTXD ( "green_slab.txd" ) 
engineImportTXD ( txd_floors19 ,2284) 
     
end 
  
addEventHandler("onClientResourceStart",resourceRoot,onResourceStart) 

I get the codes from here https://wiki.multitheftauto.com/wiki/EngineImportTXD

Example 2

Skype :bebo.ahmad34

My channel on youtupe :

https://www.youtube.com/channel/UCOXfmMopyyBL5NBeO0RS04g/videos

Posted

--client

addEventHandler ( "onClientResourceStart" , resourceRoot , 
    function () 
        engineReplaceCOL ( engineLoadCOL( "green_slab.col" ) ,2284) 
        engineImportTXD ( engineLoadTXD ( "green_slab.txd" ) , 2284) 
        engineReplaceModel ( engineLoadDFF ( "green_slab.dff" ) , 2284 ) 
end) 

--Meta


  • Moderators
Posted

No, just an unstable model(id or file) or MTA/GTA bug.

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

Posted
The loading order can sometimes cause such problem, the best order is txd then dff then col.

Does it matter? if you did them with order 1st line txd , 2nd line dff and 3rd line col ?

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