addEventHandler("onResourceStart", resourceRoot,
function()
for _, player in pairs(getElementsByType("player")) do
setElementData(player, "HaveData", 0)
end
end
)
Please use the code tool next time to share your codes, so it would be easier for others to read and understand your codes. I edited it for you this time.
Also, please explain your issue or what you're trying to achieve properly and on the topic, not hidden within your codes because it's really hard to notice.
For your request, you could use these:
onClientGUIClick
guiSetVisible
You need to trigger an event to make this happens, so when the player presses the button you send a server-side trigger, furthermore, you send it back again to his teammates and then do whatever you want to them
triggerClientEvent
triggerServerEvent