Bussy-E Posted September 26, 2011 Share Posted September 26, 2011 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
Faw[Ful] Posted September 26, 2011 Share Posted September 26, 2011 You add your files and your script in the meta? Link to comment
Bussy-E Posted September 26, 2011 Author Share Posted September 26, 2011 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
Faw[Ful] Posted September 26, 2011 Share Posted September 26, 2011 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. Link to comment
Bussy-E Posted September 26, 2011 Author Share Posted September 26, 2011 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: The default object.... Link to comment
Faw[Ful] Posted September 27, 2011 Share Posted September 27, 2011 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. Link to comment
Bussy-E Posted September 27, 2011 Author Share Posted September 27, 2011 It works!Thank you!You are awesome.Full respect for you! Link to comment
BG_Spider Posted October 2, 2011 Share Posted October 2, 2011 Rest In Peace to Eazy Eric Wright E, 1963 - 1995!!! K.I.P. to the godfather of gangsta rap! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now