Jump to content

seTtimer displayed button 1 Minute


IIIIlllllIII

Recommended Posts

hi guys i try to make the button on the player clicked displayed the button 1 minute

and after 1 minute the player can clicking the button 8)

but how that work i try to make it :!:

function onGuiClick (button, state, absoluteX, absoluteY)

if ( source == weapButton_25 ) then

triggerServerEvent("button", getLocalPlayer())

editbox = guiCreateEdit(11, 41, 241, 22, "", false, shopwinow)

if source == editbox then

outputChatBox("the button has been displayed")

setTimer ( onGuiClick, editbox ,89999 )

end

addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick)

how i displayed the button and lett him back agine after 1 minute :fadein:

Link to comment
  
-- Making Your Gui Should'nt be with the onGuiClick Event ,, so : 
  
editbox = guiCreateEdit(11, 41, 241, 22, "", false, shopwinow) -- make your Gui 
guiSetEnabled(editbox ,false) -- Set it Disabled  
-- then set your event handler 
function onGuiClick (button, state, absoluteX, absoluteY) 
if ( source == weapButton_25 ) then  
triggerServerEvent("button", getLocalPlayer()) 
-- Start 
  
if  ( source == editbox ) then -- on Clicked 
  
function Enableit() -- enabling it 
guiSetEnabled(editbox ,true) -- set it to enabled 
outputChatBox("the button has been displayed") -- output ur msg to chat 
end --- end ! 
setTimer(Enableit,60*1000,1) -- Set your timer 
-- END 
end 
addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) 
  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...