Jump to content

3NAD

Members
  • Posts

    1,992
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 3NAD

  1. Hmmm.. if you don't mind, i Will Transpire my self I'm Online at Any time, Also with Mobile.. And I Talk English Language, And i have Experience At Scripting And Managing Forums, I Helped a lot of peoples, And i didn't say a Bad words ( insult ) at This forum. And i'm Ready to get this Rank. Thank you..
  2. 3NAD

    Export, calling

    Did you mean, like bindKey, or CommandHandler But At GUI Buttons ??
  3. give it Permissions '777' and try to upload it again
  4. You must get it, - Online a lot of time, And a lot of posts on this section ======= Also i have Experience at Managing Forums and Scripting Luas If you need to another one, i Will Accept it ^^
  5. الصور مآ ظهرت معي ^^
  6. Download it, And Click [ Ctrl+A ] then [ Del ], then Upload it to your Server again ^^
  7. 3NAD

    Export, calling

    First, Add this code At Meta.xml of the resource you wanna to export it function="xx" type="xx"/> add function name and type : client or server Then, Go to any script and add this code call ( getResourceFromName ( "xx" ), "xx" ) add resource name and function name
  8. يَ ليت توضح كلآمكـ إذا كنت تبي تسوي قائمتين وحدة الإسم والثانية الأي دي جرب ذآ -- Client Side addEvent("opening", true) local vehiclesTable = { {"ADMIN-CAR", 581}, {"NRG-500", 522}, {"ADMIN-CAR2", 462}, {"PCJ-600", 461}, {"ADMIN-CAR3", 521}, {"ADMIN-CAR4", 463}, } theWindow = guiCreateWindow(478, 201, 296, 372, "Select a vehicle", false) guiWindowSetSizable(theWindow, false) guiSetVisible(theWindow, false) theGridList = guiCreateGridList(9, 21, 278, 243, false, theWindow) cl1 = guiGridListAddColumn(theGridList, "Available vehicles :", 0.6) cl2 = guiGridListAddColumn(theGridList, "ID", 0.3) for _, v in ipairs ( vehiclesTable ) do local row = guiGridListAddRow ( theGridList ) guiGridListSetItemText ( theGridList, row, cl1, tostring(v[1]), false, true) guiGridListSetItemText ( theGridList, row, cl2, tostring(v[2]), false, true) end Select = guiCreateButton(9, 270, 278, 38, "Select", false, theWindow) guiSetProperty(Select, "NormalTextColour", "FF") Close = guiCreateButton(10, 318, 277, 38, "Close", false, theWindow) guiSetProperty(Close, "NormalTextColour", "FF") addEventHandler("onClientGUIClick", root, function() if(source == Select)then local vehName = guiGridListGetItemText ( theGridList, guiGridListGetSelectedItem ( theGridList ), 2 ) if vehName ~= "" or vehName ~= " " then guiSetVisible ( theWindow, false ) guiSetInputEnabled ( false ) if vehName == "Sultan" then triggerServerEvent("spawningAVehicle", localPlayer, vehName, "Special") else triggerServerEvent("spawningAVehicle", localPlayer, vehName, "Else") end end elseif(source == Close)then guiSetVisible(theWindow, false) guiSetInputEnabled(false) end end ) addEventHandler("opening", root, function(state) if(state == "true")then guiSetVisible(theWindow, true) guiSetInputEnabled(true) elseif(state == "false")then guiSetVisible(theWindow, false) guiSetInputEnabled(false) end end ) -- Server Side addEvent("spawningAVehicle", true) local Marker = createMarker(218.54807, 1862.53955, 13.140625-1, "cylinder", 1.5, 255, 0, 0, 180) addEventHandler("onMarkerHit", Marker, function(hitElem) if(getElementType(hitElem) == "player")then if not(isPedInVehicle(hitElem))then triggerClientEvent(hitElem, "opening", hitElem, "true") end end end ) local Upgrades = {1138, 1031, 1033, 1010, 1087, 1098, 1029, 1170, 1141} local vehicles = {} addEventHandler("spawningAVehicle", root, function(model, state) if(state == "Special")then if(isElement(vehicles[ client ]))then destroyElement(vehicles[ client ]) vehicles[ client ] = nil end vehicles[ client ] = createVehicle(model, getElementPosition(client)) setElementData(vehicles[ client ], "adminVehicle", "none") setVehicleDamageProof(vehicles[ client ], true) for i = 1, #Upgrades do addVehicleUpgrade(vehicles[ client ], Upgrades[i]) end warpPedIntoVehicle(client, vehicles[ client ]) elseif(state == "Else")then if(isElement(vehicles[ client ]))then destroyElement(vehicles[ client ]) vehicles[ client ] = nil end vehicles[ client ] = createVehicle(model, getElementPosition(client)) setElementData(vehicles[ client ], "adminVehicle", "none") setVehicleDamageProof(vehicles[ client ], true) warpPedIntoVehicle(client, vehicles[ client ]) end end ) addEventHandler("onPlayerQuit", root, function() if(vehicles[ source ])then destroyElement(vehicles[ source ]) vehicles[ source ] = nil end end )
  9. 3NAD

    GridList

    سطر 36 root بدال حط اسم الشيء اللي تبي تضغطه root إذا كنت تبي القريد لست حط اسمه بدال
  10. -- جرب addEventHandler ( "onClientGUIClick", root, function ( ) if source == GUIEditor_Checkbox[1] then if guiCheckBoxGetSelected ( GUIEditor_Checkbox[1] ) then guiCheckBoxSetSelected ( GUIEditor_Checkbox[2], false ) end elseif source == GUIEditor_Checkbox[2] then if guiCheckBoxGetSelected ( GUIEditor_Checkbox[2] ) then guiCheckBoxSetSelected ( GUIEditor_Checkbox[1], false ) end end end )
  11. قول وش مشكلتكـ واطرح كودك .. /
  12. Put your last Code : )
  13. guieditor تلقاه بـ / المود
  14. 3NAD

    Help With GUI

    -- Try this function cancelPedDamage ( ) cancelEvent ( ) end addEventHandler ( "onClientPedDamage", root, cancelPedDamage ) police_window = guiCreateWindow(350,205,728,380,"RoG Police Window",false) guiSetVisible(police_window, false) guiSetAlpha(police_window,1) guiWindowSetSizable(police_window,false) playerList = guiCreateGridList(14,34,699,272,false,police_window) column = guiGridListAddColumn(playerList,"Name",0.2) police_closeBTN = guiCreateButton(163,325,416,36,"Close",false,police_window) Teams = { ["Police"] = true, ["Military"] = true, ["FBI"] = true, ["Swat"] = true, } bindKey ( "F4", "down", function ( ) if getPlayerTeam ( localPlayer ) then if Teams [ getTeamName ( getPlayerTeam ( localPlayer ) ) ] then if not guiGetVisible ( police_window ) then showCursor ( true ) guiSetVisible ( police_window, true ) for _, player in ipairs ( getElementsByType ( "player" ) ) do local row = guiGridListAddRow ( playerList ) local r, g, b = getPlayerNametagColor ( player ) local playerName = getPlayerName ( player ) guiGridListSetItemText ( playerList, row, column, playerName, false, false ) guiGridListSetItemColor ( playerList, row, column, r, g, b ) end else guiSetVisible ( police_window, false ) showCursor ( false ) guiGridListClear ( playerList ) end end end end ) -- Close Button function close ( ) guiSetVisible ( police_window, false ) showCursor ( false ) guiGridListClear ( playerList ) end addEventHandler ( "onClientGUIClick", police_closeBTN, close )
  15. 3NAD

    [HELP] Debug

    Put your Meta.xml here.
  16. addEventHandler ( "onResourceStart", root, function ( theResource ) if getResourceInfo ( theResource, "type") == "map" then if isTimer ( theTimer ) then killTimer ( theTimer ) end setTimer ( function ( ) for _, theVehicles in ipairs ( getElementsByType ( "vehicle" ) ) do theTimer = setTimer ( startColors, 150, 0, theVehicles ) end end , 10000, 1 ) end end ) function startColors ( theVehicles ) local r1, g1, b1 = math.random(255), math.random(255), math.random(255) local r2, g2, b2 = math.random(255), math.random(255), math.random(255) setVehicleColor ( theVehicles, r1, g1, b1, r2, g2, b2 ) end
  17. setVehicleColor ( vehicle, math.random( 255 ), math.random( 255 ), math.random( 255 ) )
  18. 3NAD

    [HELP] Debug

    -- Try this font1 = dxCreateFont("font_sr.ttf", 18) local messagesList = { [1] = "You are playing in X-Proffessionals", [2] = "Press F9 for help!", [3] = "Server Owner: Se[X]^^", [4] = "Have Fun!", } local currentMessage = 0 -- ******************** -- * Event handlers * -- ******************** addEventHandler ( "onClientRender", root, function ( ) local screenWidth, screenHeight = guiGetScreenSize() dxDrawRectangle(screenWidth - 204, 4, 200, 20, tocolor(0, 0, 0, 192), false) dxDrawText( messagesList [currentMessage + 1], screenWidth - 202, 6, screenWidth - 6, 16, tocolor(250, 50, 0, 255), 1, font1, "center", "top", false, false, true) end ) function updateMessage() if (currentMessage == 4) then currentMessage = 0 else currentMessage = currentMessage + 1 end end setTimer(updateMessage, 5000, 0)
  19. Lol, i didn't see any Changes at the code, Only the position of gate and the team !! You can do it by your self.
  20. وانت بخير وصحة وسلامة وبالتوفيق إن شاء الله
×
×
  • Create New...