local myMods = {
-- file name, replaces
{"filename",411},
}
addEventHandler("onClientResourceStart", resourceRoot, function()
for _,theMod in ipairs(myMods) do
local file = theMod[1]
local id = theMod[2]
local txd = engineLoadTXD (file .. ".txd" )
engineImportTXD ( txd, id )
local dff = engineLoadDFF (file .. ".dff", id )
engineReplaceModel ( dff, id )
end
end)
if you are going to have multiple mods, use this.. easier than the engineLoad stuff 500 times.