Jump to content

Problema de skins


Arsilex

Recommended Posts

local weapons = { 
   {fileName="Misil2", model=359} 
} 
  
function cargar() 
    for index, weapon in pairs(weapons) do 
        tex = engineLoadTXD ( ""..weapon.fileName.. ".txd", weapon.model ) 
        engineImportTXD ( tex, weapon.model ) 
        mod = engineLoadDFF ( ""..weapon.fileName.. ".dff", weapon.model ) 
        engineReplaceModel ( mod, weapon.model ) 
    end 
end 
  
addEventHandler("onClientResourceStart",resourceRoot, 
function () 
    local version = getVersion() 
    if version.mta == "1.3" then 
        setTimer ( cargar, 5000, 1) 
    end 
end) 

'

por que no me funciona :S?

Link to comment
local weapons =  
    { 
        { fileName = "Misil2", model = 359 } 
    } 
  
function cargar ( ) 
    for index, weapon in ipairs ( weapons ) do 
        engineImportTXD ( engineLoadTXD ( weapon.fileName ..".txd", weapon.model ), weapon.model ) 
        engineReplaceModel ( engineLoadDFF ( weapon.fileName ..".dff", weapon.model ), weapon.model ) 
    end 
end 
  
addEventHandler ( "onClientResourceStart", resourceRoot, 
    function ( ) 
        setTimer ( cargar, 5000, 1 ) 
    end 
) 

Estoy seguro de que el problema era ese "if" para verificar la version, ya no es necesario.

Link to comment
  • Recently Browsing   0 members

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