iMr.G[7]A Posted November 25, 2013 Share Posted November 25, 2013 السلام عليكم ورحمه الله وبركاته اول شي اسف على كثر طلباتي ثاني شي شباب ابي مساعده ابي كود ماركر السيارات يصير لعصابة اسم العصابة 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
K1NG Posted November 25, 2013 Share Posted November 25, 2013 : استخدم getElementData -- لجلب اسم عصابة اللاعب Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now