Wei Posted May 9, 2012 Share Posted May 9, 2012 why when I move the mouse to other button it beeps ? CODE: addEventHandler( "onClientMouseEnter", ButtonPlay, function() playSound("beep.mp3") end ) Link to comment
Kenix Posted May 9, 2012 Share Posted May 9, 2012 addEventHandler( 'onClientMouseEnter', ButtonPlay, function( ) playSound 'beep.mp3' end , false ) Try use getPropagated to false https://wiki.multitheftauto.com/wiki/AddEventHandler Link to comment
Wei Posted May 9, 2012 Author Share Posted May 9, 2012 what i need to make there at triggerServerEvent addEventHandler("onClientGUIClick", guiRoot,function(button) if (button == "left") then if (source == kickButton) then guiSetVisible( adminWindow, false) showCursor(false) elseif ( source == setWantedLevelButton ) then local playerName = guiGridListGetItemText ( gridListOfPlayers, guiGridListGetSelectedItem ( gridListOfPlayers ), 1 ) local wlGet = guiGetText ( tonumber (wantedLevelEdit) ) triggerServerEvent ( button ,playerName, wlGet ) end end end,true) Link to comment
Guest Guest4401 Posted May 9, 2012 Share Posted May 9, 2012 Client addEventHandler("onClientGUIClick", guiRoot, function(button) if (button == "left") then if (source == kickButton) then guiSetVisible( adminWindow, false) showCursor(false) elseif ( source == setWantedLevelButton ) then local playerName = guiGridListGetItemText ( gridListOfPlayers, guiGridListGetSelectedItem ( gridListOfPlayers ), 1 ) local wlGet = tonumber(guiGetText(wantedLevelEdit)) local player = getPlayerFromName(playerName) if player then triggerServerEvent ("myEvent", localPlayer, player, wlGet) end end end end ) Server addEvent("myEvent",true) addEventHandler("myEvent",root, function(thePlayer,wLevel) setPlayerWantedLevel(thePlayer,wLevel) end ) Link to comment
Wei Posted May 9, 2012 Author Share Posted May 9, 2012 how can I make that when player open the window it disable chat ? Link to comment
Wei Posted May 9, 2012 Author Share Posted May 9, 2012 I mean disable not to hide it. Just like in login systems Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now