Aimcac

Untitled

Dec 20th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. local mods = {
  2. "2719","1575","1576","1571","1577","1578","1579","1580","1644","1550"
  3. }local aMods = {164, 165, 163}
  4. local sMod
  5.  
  6. function downloadMods()
  7.  
  8. for modId,modName in pairs (aMods ) do
  9. downloadFile("objects/"..modName..".dff" )
  10. downloadFile("objects/"..modName..".txd" )
  11. sMod = modName
  12. end
  13. end
  14.  
  15. function onModDownloadFinish( file, success)
  16. if ( success ) then
  17. local texture = engineLoadTXD ("animals/"..sMod..".txd" )
  18. engineImportTXD(texture, sMod )
  19. local dff = engineLoadDFF("animals/"..sMod..".dff" )
  20. engineReplaceModel(dff, sMod )
  21. end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment