Jump to content

Rockyz

Members
  • Posts

    1,862
  • Joined

  • Days Won

    8

Everything posted by Rockyz

  1. Hes Code When Any Resource Start Will Make The GUI And Make It Visible Try This ? : SpawnveicleRcLr01 = createMarker(-2147, -738, 31, "cylinder", 1.5, 255, 0, 0, 153) addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) RACELRWINDS = guiCreateWindow(498, 289, 267, 158, "PAINEL RACE LOS RED", false) guiWindowSetSizable(RACELRWINDS, false) guiSetProperty(RACELRWINDS, "CaptionColour", "FF1700FC") guiSetVisible(RACELRWINDS, false) end ) function OpPane ( hitElement ) if ( ( source == SpawnveicleRcLr01 ) and ( hitElement == localPlayer ) ) then if ( eventName == "onClientMarkerHit" ) then guiSetVisible ( RACELRWINDS, true ) showCursor ( true ) else guiSetVisible ( RACELRWINDS, false ) showCursor ( false ) end end ) addEventHandler ( "onClientMarkerHit", resourceRoot, OpPane ) addEventHandler ( "onClientMarkerLeave", resourceRoot, OpPane )
  2. its should works buttonBuy = guiCreateButton(9, 297, 130, 26, "Buy House", false, window2) intPrice = guiCreateEdit(114, 294, 178, 22, "", false, window1) addEventHandler("onClientGUIClick", resourceRoot, function ( ) if ( source == buttonBuy ) then local gTEXT = tonumber ( guiGetText ( intPrice ) ) if ( getPlayerMoney ( localPlayer ) >= gTEXT ) then guiSetEnabled(buttonSell, true) outputChatBox("House Bought", 24, 247, 7, true ) triggerServerEvent("takingMoney", localPlayer, gTEXT ) else outputChatBox("Insufficient cash.", 249, 10, 4, true ) end end end ) addEvent("takingMoney", true) addEventHandler("takingMoney", resourceRoot, function ( gTEXT ) takePlayerMoney ( source, gTEXT ) end )
  3. addEventHandler ( "onClientGUIClick", TheCheck, function() if ( guiCheckBoxGetSelected( source ) ) then if not getElementData( Target, "MasterFaaaster" ) ~= true then setElementData( localPlayer, "MasterFaaaster", true ) end else if not getElementData( Target, "MasterFaaaster" ) ~= false then setElementData( localPlayer, "MasterFaaaster", false ) end end end,false ) ماشوف التعريف التعريف تحت الكود مايقرا من تحت
  4. سطر 11 و 13 Target ماهي معرفة
  5. وش فايدة هذي "%%%%%%%%" وبعض الاحيان تجي معها حروف
  6. for i , player in pairs(getElementsByType("player")) do zPlayer = string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") local addrow = guiGridListAddRow( teleportGridlist ) guiGridListSetItemText(teleportGridlist,addrow,teleportColumn, zPlayer,false,false) end bindKey ( "F3", "down", open ) addEventHandler ( "onClientGUIClick", TheCheck, function() if ( guiCheckBoxGetSelected( source ) ) then if not getElementData( Target, "MasterFaaaster" ) ~= true then setElementData( localPlayer, "MasterFaaaster", true ) end else if not getElementData( Target, "MasterFaaaster" ) ~= false then setElementData( localPlayer, "MasterFaaaster", false ) end end end,false ) addEventHandler( "onClientGUIClick", guiRoot, function() if ( source == teleportButton ) then local addrow = guiGridListGetSelectedItem( teleportGridlist ) if ( addrow ~= -1 ) then local Target = getPlayerFromName( guiGridListGetItemText( teleportGridlist, addrow, 1 ) ) if ( Target ) then if ( not getElementData( Target, "MasterFaaaster" ) ) or ( getElementData( Target, "MasterFaaaster" ) == false ) then local TargetX, TargetY, TargetZ = getElementPosition( Target ) guiSetEnabled(teleportWindow,false) fadeCamera(false) setTimer( setElementPosition ,1000,1, localPlayer, TargetX + 1, TargetY + 1, TargetZ ) setTimer(fadeCamera,1000,1,true) setTimer(guiSetVisible,600,1,teleportWindow,false) setTimer(showCursor,400,1,false) exports.guimessages:outputClient("Seccesfuly warp to "..getPlayerName(Target)..".",0,255,0) guiGridListClear( teleportGridlist ) setTimer(guiSetEnabled,1500,1,teleportWindow,true) else exports.guimessages:outputClient("This player closed warp.",255,0,0) end end end end end ) addEventHandler( "onClientGUIDoubleClick",teleportGridlist, function (player) local addrow = guiGridListGetSelectedItem( teleportGridlist ) if ( addrow ~= -1 ) then local Target = getPlayerFromName( guiGridListGetItemText( teleportGridlist, addrow, 1 ) ) if ( Target ) then local CheckData = getElementData( Target, "MasterFaaaster" ) if ( not CheckData ) or ( CheckData == false ) then local TargetX, TargetY, TargetZ = getElementPosition( Target ) guiSetEnabled(teleportWindow,false) fadeCamera(false) setTimer( setElementPosition ,1000,1, localPlayer, TargetX + 1, TargetY + 1, TargetZ ) setTimer(fadeCamera,1000,1,true) setTimer(guiSetVisible,600,1,teleportWindow,false) setTimer(showCursor,400,1,false) setTimer(guiSetEnabled,1500,1,teleportWindow,true) triggerServerEvent("WarpedTou",player,Target) exports.guimessages:outputClient("Seccesfuly warp to "..getPlayerName(Target)..".",0,255,0) guiGridListClear( teleportGridlist ) else exports.guimessages:outputClient("This player closed warp.",255,0,0) end end end end,false ) bindKey ( "F3", "down", open ) + مافي فنكشن في الكود اسمه open
  7. اطرح الكود قبل التعديل
  8. المود ضبط لاكن من لوحة الادمنية خليت السكن 7 ماضبط يوم كتبت في اف 8 ss 7 ضبط
  9. يب مانضاف شي في القريد ليست
  10. كتبت في الاديت 7 وضغط add مانمسحت الشخصية
  11. Try This ? SpawnveicleRcLr01 = createMarker(-2147, -738, 31, "cylinder", 1.5, 255, 0, 0, 153) setElementDimension(SpawnveicleRcLr01, 110) RACELRWINDS = guiCreateWindow(498, 289, 267, 158, "PAINEL RACE LOS RED", false) guiWindowSetSizable(RACELRWINDS, false) guiSetProperty(RACELRWINDS, "CaptionColour", "FF1700FC") guiSetVisible(RACELRWINDS, false) MyFont = guiCreateFont("Arquivos/s3d.ttf", 9) Img = guiCreateStaticImage(0, 20, 266, 134, "Arquivos/LogoRED.png", false, RACELRWINDS) ProImg = guiCreateLabel(0, 20, 266, 134, "", false, RACELRWINDS) CAR1 = guiCreateButton(10, 30, 110, 32, "Carro 1", false, RACELRWINDS) guiSetFont(CAR1, MyFont) guiSetProperty(CAR1, "NormalTextColour", "FF2AFE00") CAR2 = guiCreateButton(148, 30, 107, 32, "Carro 2", false, RACELRWINDS) guiSetFont(CAR2, MyFont) guiSetProperty(CAR2, "NormalTextColour", "FF2AFE00") DESTROY = guiCreateButton(10, 88, 110, 32, "destroir carro", false, RACELRWINDS) guiSetFont(DESTROY, MyFont) guiSetProperty(DESTROY, "NormalTextColour", "FFFCF420") BIND = guiCreateButton(148, 88, 108, 32, "Bind F1 B", false, RACELRWINDS) guiSetFont(BIND, MyFont) guiSetProperty(BIND, "NormalTextColour", "FFFCF420") EXIT = guiCreateButton(47, 127, 175, 21, "Fechar", false, RACELRWINDS) guiSetFont(EXIT, MyFont) guiSetProperty(EXIT, "NormalTextColour", "FFFD0000") GUIEditor.label[1] = guiCreateLabel(0, 20, 266, 134, "", false, RACELRWINDS) addEventHandler ( "onClientMarkerHit", resourceRoot, function ( hitElement ) if ( source == SpawnveicleRcLr01 ) if ( hitElement == localPlayer ) then guiSetVisible ( RACELRWINDS, not guiGetVisible ( RACELRWINDS ) ) showCursor ( guiGetVisible ( RACELRWINDS ) ) end end end )
  12. تستهبل علينا ؟ طيب ذي الفنكشنات addCommandHandler guiGetText triggerServerEvent triggerClientEvent isElementLowLOD
  13. طيب وضح وش تبي ؟
  14. bindKey ( "F3", "down", function () if getTeamName(getPlayerTeam(getLocalPlayer())) ~= "Staff" then return end if isPedInVehicle(getLocalPlayer()) then return end if isElement(object) then return end guiSetVisible(roadblocksWindow,not guiGetVisible(roadblocksWindow)) showCursor(guiGetVisible(roadblocksWindow)) end )
  15. addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) if ( source == GUIEditor.button[1] ) then if ( getElementData ( source, 'Enbll' ) ~= true ) then guiSetEnabled ( GUIEditor.button[1], false ) setWorldSpecialPropertyEnabled ( 'aircars', true ) setElementData ( source, 'Enbll', true ) setTimer ( function ( ) guiSetEnabled ( GUIEditor.button[1], true ) setWorldSpecialPropertyEnabled ( 'aircars', false ) setElementData ( source, 'Enbll', nil ) end, timeToEnd * 50000, 1 ) end end end )
  16. جرب timeToEnd = 5 -- عدد الدقائق للانتهاء addEventHandler ( 'onClientGUIClick', resourceRoot, function ( ) if ( source == btnn2 ) then if ( getElementData ( localPlayer, 'Enbll' ) ~= true ) then guiSetEnabled ( btnn2, false ) setWorldSpecialPropertyEnabled ( 'aircars', true ) setElementData ( localPlayer, 'Enbll', true ) setTimer ( function ( ) guiSetEnabled ( btnn2, true ) setWorldSpecialPropertyEnabled ( 'aircars', false ) setElementData ( localPlayer, 'Enbll', nil ) end, timeToEnd * 50000, 1 ) end end end )
×
×
  • Create New...