addCommandHandler("replace",
function ()
setTimer(function ()
engineImportTXD(engineLoadTXD("skin.txd", ID), ID)
engineReplaceModel(engineLoadDFF("skin.dff", 0), ID)
end, 1000, 1)
end)
addCommandHandler("restore",
function ()
engineRestoreModel(ID)
end)
the default code for this should look like this? and what if i want to bind these actions?
bindKey("F3", "up",
function()
replace = (not replace)
if(replace)then
outputChatBox("#FFFFFF[ENABLE]#FF5500Custom skin is now #00FF00enabled#FF5500!", 255, 128, 0, true)
else
outputChatBox("#FFFFFF[DISABLE]#FF5500Custom skin is now #FF0000disabled#FF5500!", 255, 128, 0, true)
end