myImage = guiCreateStaticImage(100, 100, 100, 100, "skin1.png", false)
addEventHandler("onClientGUIClick", myImage,
function()
local txd = engineLoadTXD("skin1.txd") -- correct your path to model! (txd)
engineImportTXD(txd,411) --
local dff = engineLoadDFF("skin1.dff",411) -- correct your path to model! (dff)
engineReplaceModel(dff,411)
end,false
);
A script is a sequence of actions. Like in a movie. "The player pressed the picture -> a function has been called that has a body of actions -> replaces the model of the machine (ID 411) -> the event ends.