Search the Community
Showing results for tags 'image '.
-
client: if getElementData(player, "showImage") then dxDrawImage (sx-34, sy-95, 55, 55, 'logo.png' ) else dxDrawImage (sx-34, sy-95, 55, 55, 'air.png' ) end server: function setDataOnLogin(player) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("FoAdmin")) then setElementData(source, "showImage", true) end end addEventHandler("onPlayerLogin", root, setDataOnLogin) function setDataOnResourceStart(player) for i, v in ipairs(getElementsByType("player")) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("FoAdmin")) then setElementData(v, "showImage", true) end end end addEventHandler("onResourceStart", resourceRoot, setDataOnResourceStart) function removeDataOnLogout() setElementData(source, "showImage", false) end addEventHandler("onPlayerLogout", root, removeDataOnLogout) i have a error: server.lua:31: attempt to concatenate a boolean value.. how to fix?