Jump to content

Max+

Members
  • Posts

    1,363
  • Joined

  • Last visited

Everything posted by Max+

  1. isTransferBoxActive playSound Example , https://forum.multitheftauto.com/viewtopic.php?f=91&t=67275
  2. Max+

    Blip Hide

    it should be string , addCommandHandler( 'hide' ,
  3. See, as i told you same as aintaro post ,
  4. الله يعطيك العافية حبيبي , اماراتي , درس , جميل ومفيد للمبتدئ في البرمجة , واللي مافهم الشرح , ذا شرح مبسط , سويته , viewtopic.php?f=164&t=57769
  5. well, i think the first one , trigger for all players , and second one , for 1 player witch is source , just like if you want to play sound for the killer only , triggerClientEvent ( killer, 'PlaySound', killer )
  6. This means you tried to index a table that does not exist , you need to make a table before indexing it ,
  7. Max+

    about gui

    just Change my post form onPlayerLogin to onPlayerJoin if is GusetAccount , then triggertheHide event else triggerShow event , it's Very Easy .
  8. Events , onPlayerLogout , onPlayerLogin setElementData getElementData
  9. Max+

    Team Chat

    this is serverSide , addEventHandler('onPlayerChat', root, function ( msg, msgType ) if ( msgType == 2 ) then triggerClientEvent(source, 'Play', source ) end end ) ClientSide , addEvent('Play', true ) addEventHandler('Play', root, function ( ) local sound = playSound("chat.mp3" ) setSoundVolume(sound, 1.0) end ) and change the misc to script
  10. Max+

    Team Chat

    Make 2 lua file , file 1 - clientSide witch is the play sound , file 2 the server side , witch is the have triggerClient,
  11. جرب ذا , theMarker = createMarker ( 1368.99402,-1279.65918,13.54688, "cylinder", 1.5, 255, 255, 0, 250 ) addEventHandler( "onMarkerHit", theMarker, function ( elm ) if ( getElementType ( elm ) == 'player' ) then setElementInterior ( elm, 6 ) setElementPosition ( elm, 285.56036,-41.65447,1001.51563 ) end end )
  12. Max+

    Team Chat

    are you sure chat.mp3 is not inside a file , ? and show meta.xml
  13. Max+

    about gui

    impossible , show me , your code,
  14. Max+

    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 . have a look what i post ,
  15. I Know , But i event try to make another way , see my edited post,
  16. Max+

    about gui

    you Can do something like this , - onPlayerLogin ---- Event on ServerSide isGuestAccount --- if they are not logged in then triggerClientEvent ( source, 'hideGUI', source ) --- to call the event on Client named hidegui -------------- ClientSide addEvent('hideGUI', true ) addEventHandler('hideGUI', root, function ( ) guiSetVisible ( windowName, false ) showCursor ( false ) --------------------------------------
  17. حياك الله ,
  18. i didn't get what you want , you want if player click on gridlist get the selected item that he clicked on ?
  19. GUIEditor = { gridlist = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(821, 343, 219, 410, "VEHICLE", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.gridlist[1] = guiCreateGridList(10, 28, 198, 367, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "3.D", 0.9) for i = 1, 2 do guiGridListAddRow(GUIEditor.gridlist[1]) end guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "PO1", false, false) guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "PO2", false, false) end ) addEventHandler ("onClientGUIDoubleClick", root, function ( ) if ( source == GUIEditor.gridlist[1] ) then local row, col = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) if ( row == -1 ) then return end local text = guiGridListGetItemText ( GUIEditor.gridlist[1], row, col ) if ( text == 'PO1' ) then outputChatBox('IAM , PO1', source, 255, 0, 0 ) elseif ( text == 'PO2' ) then outputChatBox('IAM , PO2', source, 255, 0, 0 ) end end end )
×
×
  • Create New...