Jump to content

Replace skin problem


Pablosino

Recommended Posts

Hi all i download new skin superman file skin1.ddf and skin2txd but in game is old skin what i have bad please help

this is me xml and lua

lua

local skins = {{fileName="skin1", skinID=9} 
function load() 
    for index, skin in pairs(skins) do 
        engineImportTXD(engineLoadTXD ( skin.fileName ..".txd" ), tonumber(skin.skinID)) 
        engineReplaceModel(engineLoadDFF ( skin.fileName ..".dff", 0 ), tonumber(skin.skinID)) 
    end 
end 
  
addEventHandler("onClientResourceStart",resourceRoot, 
function () 
    local version = getVersion() 
    if string.find(version.mta, "1.3") then 
        setTimer ( load, 1000, 1) 
    end 
end) 
  

xml

    

Please help thx..

Link to comment
local skins = {{fileName="skin1", skinID=9}} 
function load() 
    for index, skin in pairs(skins) do 
        engineImportTXD(engineLoadTXD ( skin.fileName ..".txd" ), tonumber(skin.skinID)) 
        engineReplaceModel(engineLoadDFF ( skin.fileName ..".dff", 0 ), tonumber(skin.skinID)) 
    end 
end 
  
addEventHandler("onClientResourceStart",resourceRoot, 
function () 
    local version = getVersion() 
    if string.find(version.mta, "1.1.1") then 
        setTimer ( load, 1000, 1) 
    end 
end) 
  

You had missing '}' at this line:

local skins = {{fileName="skin1", skinID=9}} 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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