Jump to content

Custom Object Problem


Bussy-E

Recommended Posts

Hey guys.Today I tried to make map with custom objects.Well I thought that will be pretty easy and simple, but the Map Editor doesn't show me the Custom object.This is the lua script I use:

addEventHandler('onClientResourceStart', resourceRoot,  
function() 
    local txd = engineLoadTXD("example.txd")  
    engineImportTXD(txd, 8558) 
    local col = engineLoadCOL("example.col")  
    engineReplaceCOL(col, 8558) 
    local dff = engineLoadDFF("example.dff", 0)  
    engineReplaceModel(dff, 8558) 
  
end  
) 

And when I try to use 8558, it shows me the original model.Please help me. :)

Link to comment

Of course I did.Here it is:

<script src="custommodels.lua" type="server" /> 
    <file src="example.col" /> 
    <file src="example.dff" /> 
    <file src="example.txd" /> 

I think the problem is from the map editor.I think there is some map editor fixes for that, cuz I watched your video and you were just browsin' in the objects menu and finding you custom objects. :)

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