local Group =
{
{ 100000 },
}
addEventHandler ( "onClientGUIClick", guiRoot,
function ( )
if ( source == GUIEditor.staticimage[2] ) then
local money = 0
if ( source == GUIEditor.staticimage[2] ) then
money = Group[1][1]
end
if getElementData ( source or GUIEditor.staticimage[2],'AntiSpam' ) == true then outputChatBox('Wait 60 Sec!') return end
if ( getPlayerMoney ( ) <= tonumber ( money ) ) then outputChatBox ( 'You Not Have Money', 255, 0, 0 ) return end
triggerServerEvent('SyncSound',localPlayer)
end
end
)
addEvent('s1',true)
addEventHandler('s1',root,
function ( )
if isElement ( sound ) then destroyElement ( sound ) sound = nil end
sound = playSound ( "1.mp3",false )
setElementData ( GUIEditor.staticimage[2],'AntiSpam',true )
setTimer ( setElementData,60000,1,GUIEditor.staticimage[2],'AntiSpam',false )
end
)
Try this.