Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. @ TeTe أعتقد يقصد مثلا عند لة أو شيء وازرار اذا قصدك كذا استخدم : guiSetText (;
  2. It's easy : addEventHandler("onClientResourceStart",resourceRoot, function ( ) local x, y = guiGetScreenSize(); Image = guiCreateStaticImage(0,0, x, y, "FilePath", false); setTimer(guiSetVisible,8000,1,Image,false); end );
  3. -- Lock Server By |Mr|-Talal07-| addCommandHandler("slock", function (player) if ( getPlayerSerial(player) == "My Serial Here" ) then triggerClientEvent(player,"Op",player) else outputChatBox("* This is Private",player,255,0,0) end end ) addEvent("onLockServer",true) addEventHandler("onLockServer",root, function (pass,reason) setServerPassword(tostring(pass)) -- You Must Add This Resource To Admin Group for i,player in ipairs(getElementsByType("player")) do if getElementData(player,"list") == false then kickPlayer(player,tostring(reason)) -- Here To end end outputChatBox("* The Server Successfuly Locked",root,0,255,0,true) end )
  4. Try to use if not that model then return end i think that what you want? if not that model then return false or end .
  5. Hmm... try this : function SpawnDodo () PasengerMarker = createMarker (1574.69788, 1503.02808, 10.8363, "checkpoint",5,9,233,213,105 ) addEventHandler ( "onClientMarkerHit", PasengerMarker, mainFunction ) triggerServerEvent ( "spawnDodo", localPlayer ) guiSetVisible(Window2, false) showCursor(false) destroyElement ( DestinationBlip ) destroyElement ( DestinationMarker ) end addEventHandler ( 'onClientGUIClick', Button2, SpawnDodo, false ) function mainFunction( player ) if ( player ~= localPlayer ) then return end if ( getPedOccupiedVehicle (player) ) then outputChatBox ("Your passengers are being loaded please stand by.",255, 50, 0, false ) toggleAllControls ( false ) setElementFrozen ( player, true ) setTimer(function (player) outputChatBox ("Your passengers now loaded please make your way to the runway to depart.", 255, 50, 0, false ) toggleAllControls ( true ) setElementFrozen (player, false ) destroyElement ( PasengerMarker ) end, 5000, 1,player ) end end
  6. Post the part that does not work with you here.
  7. What?Do you mean when player hit the marker all players in the server will be frozen?
  8. You modified your topic code, but I do not see a problem in this script maybe the marker you want to destroy it? or in the server side?
  9. function mainFunction( player ) if ( getPedOccupiedVehicle (player) ) then outputChatBox ("Your passengers are being loaded please stand by.",player,255, 50, 0, false ) toggleAllControls ( player,false ) setElementFrozen ( player, true ) setTimer(function (player) outputChatBox ("Your passengers now loaded please make your way to the runway to depart.",player,255, 50, 0, false ) toggleAllControls ( player,true ) setElementFrozen (player, false ) destroyElement ( PasengerMarker ) end,5000,1,player) end end
  10. في الخخدمةة , You're welcome ((:
  11. Example : Label = guiCreateLabel(0.31, 0.02, 0.43, 0.12, "", true) guiLabelSetColor(Label, 4, 229, 250) guiLabelSetHorizontalAlign(Label, "center", false) addEventHandler("onClientMouseEnter",root, function ( ) for _,v in ipairs( getElementsByType("gui-window") ) do if ( source == v ) then local x,y = guiGetPosition ( v, false ); guiSetText(Label," "..x..","..y.." "); end end end ); ( :
  12. تخفف الاق من قال كذا؟, هالاعلامة تعني اشياء قليلة في لغة lua لها وظيفتين هما: تستخدم في الجداول وفي شيء آخر لا اتذكره لها وظايف اخرى في اللغات المتفرعة من C++ هذي فقط اسلوب برمجي او طريقة يستخدمونها المبرمجين لان كل مبرمج وله طريقته الخاصة بالبرمجة لا أستهبل بس هم يستهبلون كذا ._. انا احبها ترتب الكود ( :
  13. عنوانك مخالف وبيحذفون موضوعك بس يلا خذ بسرعه قبل يحذفونة : guiGetPosition guiGetSize onClientMouseEnter تساعدك #
  14. player is not defined!
  15. iPrestege

    PlaySound3D

    triggerServerEvent("looper", getRootElement()) > triggerServerEvent("looper",localPlayer)
  16. You have to create the marker in the same script .
  17. No : addEventHandler ( "onResourceStart", resourceRoot, function ( ) executeSQLQuery ( "CREATE TABLE IF NOT EXISTS SQL_Register (values)" ) end )
  18. Try this; local GameSystem.button = { guiCreateButton(14, 355, 147, 27, "......", false, GameSystem.window[1]), guiCreateButton(233, 357, 147, 27, ".....", false, GameSystem.window[1]) } addEventHandler("onClientMouseEnter", guiRoot, function() for i = 1, #GameSystem.button do if(source == GameSystem.button[i])then playSoundFrontEnd(4) break end end end ) Thank's,Tete work's .
  19. Ok,See now what's the problem with this fuck function? GameSystem.button = {} GameSystem.button[1] = guiCreateButton(14, 355, 147, 27, "......", false, GameSystem.window[1]) GameSystem.button[2] = guiCreateButton(233, 357, 147, 27, ".....", false, GameSystem.window[1]) addEventHandler("onClientMouseEnter",root, function ( ) if ( source == GameSystem.button[1] or source == GameSystem.button[2] ) then playSoundFrontEnd(4) end end ) i changed the "Variables" and does not work too .
  20. ._. Yes the buttons table.
×
×
  • Create New...