Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Ditch your texture.txd in the main resource folder that you just created.
- Your folder in Resources should contain:
- -meta.xml
- -texture.txd
- -server.lua
- Make sure you run your resource ;)
- -- Below is the meta.xml file in your new folder
- <meta>
- <script src="server.lua" type="server" />
- <file src="texture.txd" />
- </meta>
- -- Below is the server.lua file in your new folder
- local filelocation = "models/texture.txd" -- replace this
- addEventHandler("onResourceStart", resourceRoot, function ()
- local txdmodel = engineLoadTXD ( "models/office_floors.txd" )
- local success = engineImportTXD ( txdmodel, 11453)
- if success then
- outputConsole("Mod loaded!")
- else
- outputConsole("An error has occured while loading the mod!")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement