Jump to content

Models doesnt work


kewiiNNN

Recommended Posts

Why doesnt this replace models did i did something wrong?

My Meta file:

http://gyazo.com/9f0603b96e5518a9fe4cb83e5c4c89d8

My Lua file:

http://gyazo.com/c905b3b575f1becd9d1590684a8777f2

My Files:

http://gyazo.com/34d39cd4a8e917ad79580627613d7e38

What did i do wrong?

well i looked just at the first photo and already saw you using 1 collison file you need to have 1 for evry dff

and you need to make a .map file

and your .lua is notworking try to edit this one

function map() 
    txd = engineLoadTXD ( "Files/road.txd" ) 
        engineImportTXD ( txd, 16209 ) 
    col = engineLoadCOL ( "Files/road.col" ) 
    dff = engineLoadDFF ( "Files/road.dff", 0 ) 
    engineReplaceCOL ( col, 16209 ) 
    engineReplaceModel ( dff, 16209 ) 
    engineSetModelLODDistance(16209, 2000) 
end 
  
setTimer ( map, 2000, 1) 
addCommandHandler("reloadmap",map) 
  
addEventHandler("onClientResourceStop", getResourceRootElement(getThisResource()), 
    function() 
        engineRestoreCOL(16209) 
        engineRestoreModel(16209) 
        destroyElement(dff) 
        destroyElement(col) 
        destroyElement(txd) 
    end 
) 
  

Link to comment

well im not a good scripter i just download 1 map on community and just changed lua and meta files like it was barroco.dff txd and col and i changed all to edemhill.dff txd and col and also changed id of objects. i would appreciate if you could make me meta and lua? thanks

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