Jump to content

Problema de skins


Arsilex

Recommended Posts

Posted
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?

rsilex.png.0e6ad382b3fdc3cbe6390e3e847572c9.png
Posted
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.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

tambien agregar que el definio getVersion como version

y abajo puso if version.mta..

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

Lo que "hizo" esta bien, ya que el codigo lo poste yo en otro tema antes. El problema es el que mencione antes.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

y que tan necesario es el setTimer? no se puede simplemente poner el onClientResourceStart a cargar?

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted
y que tan necesario es el setTimer? no se puede simplemente poner el onClientResourceStart a cargar?

Si.

@pekio: De nada.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

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