SHOW:
|
|
- or go back to the newest paste.
| 1 | -- Ditch your texture.txd in the main resource folder that you just created. | |
| 2 | ||
| 3 | Your folder in Resources should contain: | |
| 4 | ||
| 5 | -meta.xml | |
| 6 | -texture.txd | |
| 7 | -server.lua | |
| 8 | ||
| 9 | Make sure you run your resource ;) | |
| 10 | ||
| 11 | -- Below is the meta.xml file in your new folder | |
| 12 | <meta> | |
| 13 | <script src="server.lua" type="server" /> | |
| 14 | <file src="texture.txd" /> | |
| 15 | </meta> | |
| 16 | ||
| 17 | -- Below is the server.lua file in your new folder | |
| 18 | ||
| 19 | local filelocation = "models/texture.txd" -- replace this | |
| 20 | ||
| 21 | addEventHandler("onResourceStart", resourceRoot, function ()
| |
| 22 | local txdmodel = engineLoadTXD ( "models/office_floors.txd" ) | |
| 23 | local success = engineImportTXD ( txdmodel, 11453) | |
| 24 | if success then | |
| 25 | outputConsole("Mod loaded!")
| |
| 26 | else | |
| 27 | outputConsole("An error has occured while loading the mod!")
| |
| 28 | end | |
| 29 | end) |