Jump to content

!!ابي مساعده في الكود


iMr.G[7]A

Recommended Posts

السلام عليكم ورحمه الله وبركاته

اول شي اسف على كثر طلباتي ثاني شي شباب ابي مساعده ابي كود ماركر السيارات يصير لعصابة اسم العصابة D3s

الكود

    Wnd1 = guiCreateWindow(220,230,313,310,"gta-time",false) 
  --  guiSetAlpha( Wnd1, 1 ) 
    buttonv = guiCreateButton ( 0.05, 0.86, 1, 0.1, "close", true, Wnd1 ) 
    button1v = guiCreateButton ( 0.05, 0.75, 1, 0.1, "Selection", true, Wnd1 ) 
    label = guiCreateLabel ( 0.9, "get free vehicle", true, Wnd1 ) 
    showCursor(false) 
    guiSetVisible( Wnd1, false ) 
    guiWindowSetSizable( Wnd1, false ) 
    guiWindowSetMovable( Wnd1, false ) 
    
      
      
        vehicles = 
                { 
                {"Sultan ", 560}, 
                {"NRG-500", 522},  
                {"Infernus", 411}, 
                {"Turismo", 451}, 
                {"Super GT", 506}, 
                {"Jester", 559}, 
                 {"Elegy", 562}, 
                 {"Bullet", 541}, 
                 {"Maverick ", 487}, 
                } 
                vehicles1 = 
                { 
                {"Maverick ", 487}, 
                {"Leviathan", 417},  
                } 
     
      
        grid = guiCreateGridList(0.01, 0.2, 0.99, 0.5, true, Wnd1) 
        guiGridListAddColumn(grid, "Vehicles", 0.85) 
          
        for i,veh in ipairs(vehicles) do 
             row = guiGridListAddRow(grid) 
             -- 
             guiGridListSetItemText(grid, row, 1, tostring(veh[1]), false, false) 
             guiGridListSetItemData(grid, row, 1, tostring(veh[2])) 
        end 
          
    function useP() 
        local row, col = guiGridListGetSelectedItem(grid)   
        if (row and col and row ~= -1 and col ~= -1) then 
            local model = tonumber(guiGridListGetItemData(grid, row, 1)) 
            if model ~= "" then 
                triggerServerEvent("CreVehicePv", localPlayer, model) 
                guiSetVisible(Wnd1,false) 
            showCursor(false) 
            end 
        end 
    end 
    addEventHandler("onClientGUIClick", button1v, useP, false) 
      
    function close() 
        if (source == buttonv) then 
            guiSetVisible(Wnd1,false) 
            showCursor(false) 
        end 
    end 
    addEventHandler("onClientGUIClick", buttonv, close) 
        
    function showGUIpv() 
        guiSetVisible(Wnd1,true) 
        showCursor(true) 
    end 
    addEvent("showGUIpv",true) 
    addEventHandler("showGUIpv", getRootElement(), showGUIpv) 

اتمنى الرد السريع

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...