Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Ditch your texture.txd in the main resource folder that you just created.
  2. Your folder in Resources should contain:
  3.  
  4. -meta.xml
  5. -texture.txd
  6. -server.lua
  7.  
  8. Make sure you run your resource ;)  
  9.  
  10. -- Below is the meta.xml file in your new folder
  11. <meta>
  12.     <script src="server.lua" type="server" /­>
  13.     <file src="texture.txd" />
  14. </meta>
  15.  
  16. -- Below is the server.lua file in your new folder
  17.  
  18. local filelocation = "texture.txd" -- replace this
  19.  
  20. addEventHandler("onResourceStart", resourceRoot, function ()
  21.     local txdmodel = engineLoadTXD ( "models/office_floors.txd" )
  22.     local success = engineImportTXD ( txdmodel, 11453)
  23.     if success then
  24.         outputConsole("Mod loaded!")
  25.     else
  26.         outputConsole("An error has occured while loading the mod!")
  27.     end
  28. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement