BeCooL Posted October 24, 2012 Share Posted October 24, 2012 اذا وقفت على الماركر تطلع السيارة بس السيارة م تطلع ليه ؟ gui شبآآب انا سويت هذا الكود : Wnd = guiCreateWindow ( 0.2, 0.2, 0.25, 0.5, "Police Vehicles", true ) guiSetAlpha( Wnd, 1 ) button = guiCreateButton ( 0.01, 0.8, 0.99, 0.15, "Close", true, Wnd ) label = guiCreateLabel ( 0.1, 0.1, 0.9, 0.1, "Double Click Vehicle to take it.", true, Wnd ) showCursor(false) guiSetVisible( Wnd, false ) guiWindowSetSizable( Wnd, false ) guiWindowSetMovable( Wnd, false ) vehicles = { {"HPV1000", 523}, {"Police LS", 596}, {"Police LV", 598}, {"Police Ranger", 599}, } grid = guiCreateGridList(0.01, 0.2, 0.99, 0.5, true, Wnd) 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 use() 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("CreVehice", localPlayer, model) end end end addEventHandler("onClientDoubleClick", root, use, false) function close() if (source == button) then guiSetVisible(Wnd,false) showCursor(false) end end addEventHandler("onClientGUIClick", button, close) function showGUI2p() guiSetVisible(Wnd,true) showCursor(true) end addEvent("showGUI2p",true) addEventHandler("showGUI2p", getRootElement(), showGUI2p) Link to comment
3NAD Posted October 24, 2012 Share Posted October 24, 2012 مو معقول انكـ تسوي جداول + لسته و مو عارف كيف تصنع السيارة Link to comment
BeCooL Posted October 24, 2012 Author Share Posted October 24, 2012 مو معقول انكـ تسوي جداول + لستهو مو عارف كيف تصنع السيارة ههههه مصدق انا مسويه ض1 Link to comment
iPrestege Posted October 24, 2012 Share Posted October 24, 2012 مو معقول انكـ تسوي جداول + لستهو مو عارف كيف تصنع السيارة +1 : / Link to comment
3NAD Posted October 24, 2012 Share Posted October 24, 2012 ههههه مصدق انا مسويه ض1 قفل الموضوع و روح موت Link to comment
BeCooL Posted October 24, 2012 Author Share Posted October 24, 2012 ههههه مصدق انا مسويه ض1 قفل الموضوع و روح موت اوك برب موووت هههههه Link to comment
iPrestege Posted October 24, 2012 Share Posted October 24, 2012 ههههه مصدق انا مسويه ض1 قفل الموضوع و روح موت 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