Jump to content

Como hago esto?


Cristian94

Recommended Posts

Aca tenes uno que cree, deberia funcionar:

-- client.lua:

local skins = {{"skin1", 46}, {"skin54", 53}} 
      
function load() 
        for index, skin in pairs(skins) do 
            txd = engineLoadTXD ( skin[1].. ".txd" ) 
            engineImportTXD ( txd, skin[2] ) 
            dff = engineLoadDFF ( skin[1].. ".dff", 0 ) 
            engineReplaceModel ( dff, skin[2] ) 
       end 
end 
      
addEventHandler("onClientResourceStart",resourceRoot, 
    function () 
        local version = getVersion() 
        if string.find(version.mta, "1.1.1") then 
            setTimer ( load, 1000, 1) 
      end 
end) 

-- meta.xml:

    

Supongo que sabes crear un recurso, verdad?

Link to comment
  • Recently Browsing   0 members

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