Jump to content

showCursor# Help


iPrestege

Recommended Posts

Posted
What?

i don't understand..

You mean this?

bindKey 
unbindKey 

I mean, when I entered the Battleground weapons shop only works in the Battleground!If the player came out of the Battleground could not use shop weapons !

  

Posted (edited)

i have a problem here when i click the button ! all the function work ! but the showCursor(false) not working

realy i don,t Know Why :| , Some Help here : i want to hide the cursor!

Edited by Guest

  

Posted

Does not have a problem

Make sure other Function

or use this

to above visibility

replace this

  
   showCursor(false) 
  

then put this

  
showCursor(not isCursorShowing())  
  

Welcom to my server Q.5

Current game type in my server Drift

350x20_FFFFFF_FFFFFF_000000_000000.png

my Email : [email protected]

Programming level: 90%

Posted (edited)

Here My Script Not Working!

  
  
  
DeathWnd = guiCreateWindow(0, 0, 0, 0, "DeathMatch Game", false) 
  
function close() 
  
    guiSetVisible(DeathWnd,false) 
    showCursor(false) 
    showChat(true) 
    fadeCamera(true) 
end 
  
addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == Grove ) then 
            close() 
            setElementData(localPlayer,"x",-1819.62439) 
            setElementData(localPlayer,"y",-1610.32141) 
            setElementData(localPlayer,"z",23.01563) 
            setElementData(localPlayer,"skin",107) 
            setElementData(localPlayer,"team","Grove") 
            triggerServerEvent("spawnPlayer",localPlayer) 
        elseif ( source == Police ) then 
            close() 
            setElementData(localPlayer,"x",-1858.80212) 
            setElementData(localPlayer,"y",-1612.50281) 
            setElementData(localPlayer,"z",21.76415) 
            setElementData(localPlayer,"skin",285) 
            setElementData(localPlayer,"team","Police") 
            triggerServerEvent("spawnPlayer",localPlayer) 
        elseif ( source == NoTeam ) then 
            close() 
            setElementData(localPlayer,"x",-1911.83398) 
            setElementData(localPlayer,"y",-1671.33533) 
            setElementData(localPlayer,"z",23.01563) 
            setElementData(localPlayer,"skin",29) 
            setElementData(localPlayer,"team","No Team") 
            triggerServerEvent("spawnPlayer",localPlayer) 
        end 
    end 
) 
  

Edited by Guest

  

Posted
There is no errors

But i dont know why the wtf showCursor all the other,s function working! why the showCursor not working wtf with showCursor

:x:x still i need help .

  

Posted

Are you sure that there's no other part of your resource which show the cursor after that 'close' function?

Or perhaps the Console window is currently visible?

Any warnings/errors?

Multi Theft Auto: San Andreas - DM/DD Race Server

350x20.png

Multi Theft Auto: San Andreas - Freeroam Server (WIP)

350x20.png

Wolfenstein: Enemy Territory Server

350x20.png

Mafia II Multiplayer Server

350x20.png

More Insane-Players Server

Posted
Are you sure that there's no other part of your resource which show the cursor after that 'close' function?

Or perhaps the Console window is currently visible?

Any warnings/errors?

guiSetVisible(DeathWnd, false) 

And Am Sure No other part with showcursor :fadein:

  

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...