Jump to content

SkatCh

Members
  • Posts

    365
  • Joined

  • Last visited

Posts posted by SkatCh

  1. client side :

    addEvent('hideGUI', true ) 
    addEventHandler('hideGUI', root, 
    function (  ) 
    guiSetVisible (  window, false ) 
    showCursor ( false ) 
    end) 
    

    server side:

      
    function check() 
     sourceAccount = getPlayerAccount ( source ) 
    if isGuestAccount ( sourceAccount ) then 
    triggerClientEvent ( source, 'hideGUI', source )  
    end 
    end 
    addEventHandler("onPlayerLogin", root, check) 
    

  2. guys please i need some help here :

    example :

    jobsLocation = { 
    {job = "Police Officer", x = 249.6259765625,y = 67.8125,z = 1002.9, r = 67, g = 156, b = 255, int = 6 , dim = 1 , team = "Police Force", skin = {280, 281, 282, 283, 284, 288}, jobEvent = "policeTaken", maxWL = 0, description =" bla bla bla bla bla"},   
    

    function ceateJobLocations() 
        for index, val in pairs(jobsLocation) do 
            marker = createMarker(val.x, val.y, val.z-0.5, "cylinder", 1.5, val.r, val.g, val.b, 255) 
            name[marker] = val.job 
            setElementDimension (marker , val.dim ) 
            setElementInterior (marker , val.int) 
            addEventHandler("onMarkerHit", marker, enteredMarker) 
        end 
    end 
    addEventHandler("onResourceStart", resourceRoot, ceateJobLocations) 
    

    warnings :

    "setElementinterior " [Excepted number at argument 2 , got nil ] and the same warnig with setElementDimension , so please how can i fix it .

  3. What do you mean by "guieds"? you are talking about all GUI's? if so, then you should edit each script and add it a check to see if player is logged in.

    yes bro exactly i am talking about all GUI's : example players can't use F1 , F2 , F3 ... F7 when they didn't login .

  4. hi guys please i need some help i have two question :

    the first one is : how can i update my server to 1.4 ?

    and the second is how can i change my gamemode name ? i know that i can change it from Admin panel but the problem i have and my own admin panel so what can i do . thank you

  5. hi guys please can any one fix this for me . i want when the player press F11 = close Hud , and if he press it again = Hud open .

    i tried this i am new scripter but it dosen't work :) it just close the Hud .

    Note : i create My own Hud it's not GTA Hud so "showPlayerHudComponent" it will never work ,

      
    addEventHandler( "onClientKey", root, 
    function(button,press) 
        
        if button == "F11" then 
            removeEventHandler("onClientHUDRender", getRootElement(), HudOpening) 
            else 
        addEventHandler("onClientHUDRender", getRootElement(), HudOpening)  
        end 
        
    end ) 
    

  6. guys can anyone help me i want when the player press F11 = hud open , if he press it again F11 = hud close .

    i tried this one but it just close the Hud . ( Not GTA Hud my own Hud )

    addEventHandler( "onClientKey", root,  
    function(button,press)  
         
        if button == "F11" then 
            removeEventHandler("onClientHUDRender", getRootElement(), HudOpening) 
            else 
        addEventHandler("onClientHUDRender", getRootElement(), HudOpening)   
        end 
         
    end ) 
    

  7. why don't you show the login later?

    Or are you talking about the moment they are downloading the code?

    it didn't work , just i want the Hud appear when the player start playing . i'm talking about my new hud not Gta sa hud .

  8. i think you don't undrestand what i am talking about , i mean when players join my server they can see the Hud before they login .

    i tried all events :

    "onClientHUDRender"

    "onClientPlayerSpawn"

    "onClientPlayerJoin"

    but the problem still exist .

  9. what are you talking about i didn't undrestand nothing can u explane more or give a solution i don't need Client; server event i know them all but just i want the hud appear when the player join the server in other word when the player click login .

  10. yes ,

    i tried this event "onClientPlayerLogin" but it it doesn't work i still can see the Hud with the login panel .

    just i want when the player login hud will be visible not before he login in .

  11. hi guys please i need some help i create a new Hud for my server and it's working fine , but the problem when i try to (reconnect or quit and join again) i can see the Hud with the login panel , i want to see it just when the player join the game i used this event , "onClientHUDRender" , is there anyway to fix it .

    i'm sorry about my english .

×
×
  • Create New...