gui = guiCreateStaticImage(0,0,1,1,"images/gui.png", true)
showCursor(true)
army = guiCreateStaticImage( 20, 20, 100, 70, "images/army.png", false, gui )
function army_()
if (source == army) then
setElementModel(getLocalPlayer(), 287)
guiSetVisible(gui, false)
showCursor(false)
end
end
addEventHandler("onClientGUIClick", getRootElement(), army_)
Try that, never call a function like a variable/table.