Jump to content

Custom Object Problem


Bussy-E

Recommended Posts

Posted

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

Posted

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

Posted

Your script need to be client side not server side, you understand now that you need to show all your things, I mean the meta and the script and maybe some pictures.

Posted

Thanks for the script fix, but it doesn't work/help...I tried to replace other object, but I can see the object only if I test the map...In the map editor I see this:

c5998d151189388.jpg

The default object....

:|

Posted

Put your script into a folder to make a new resource and and put this folder in the race gamemod / addons

and start the resource in the server black screen or in the chat with / or in the console f8 or in the amin pannel , but you need to be admin to start a resource.

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