Jump to content

Recurso mod loader


Recommended Posts

  
mods = { 
    [455] = {"txd", "dff", "col"}, 
    [312] = {"txd", "dff", "col"}, 
} 
--  [Model] = {"file.txd", "file.dff", "file.col"}, 
local mods_folder_path = "/mods/" 
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function () 
        for model, data in ipairs(mods) do 
            if ( data[1] ) then 
                engineImportTXD(engineLoadTXD(mods_folder_path..data[1], model) 
            elseif ( data[2] ) then 
                engineReplaceModel(engineLoadDFF(mods_folder_path..data[2], model) 
            elseif ( data[3] ) then 
                engineReplaceCOL(engineLoadCOL(mods_folder_path..data[3], model) 
            end 
        end 
    end 
) 
  

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...