Jump to content

SkatCh

Members
  • Posts

    365
  • Joined

  • Last visited

Everything posted by SkatCh

  1. SkatCh

    about gui

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

    Table problem

    lol :fp: , can any other one help me .
  3. SkatCh

    Table problem

    i don't undrestand you can you post an example .
  4. SkatCh

    Table problem

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

    about gui

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

    about gui

    hi guys please i need some help how can i make players can't see guieds if they didn't login . i'm sorry about my english
  7. SkatCh

    Server update

    can you please an example of setGameType .
  8. SkatCh

    Server update

    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
  9. hi guys please i have a question is there any command like "executeCommandHandler" but it can call a key not a command . exmaple : execute..........Handler("F2") .
  10. SkatCh

    BindKey

    no i want it with F11 (open, close) with the same key .
  11. SkatCh

    BindKey

    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 )
  12. SkatCh

    Hud problem

    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 )
  13. SkatCh

    Hud problem

    nvm bro i fix it by my self thx all .
  14. SkatCh

    Hud problem

    sorry bro it dosent' work .
  15. SkatCh

    Hud problem

    can you give me an example .
  16. SkatCh

    Hud problem

    can any one tell me how can i open and close an event with F11 . i mean i want to use bindKey .
  17. SkatCh

    Hud problem

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

    Hud problem

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

    Hud problem

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

    Hud problem

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

    Hud problem

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

    about mysql

    thank you can you answer the second question please .
×
×
  • Create New...