CRoW,,# Posted January 19, 2014 Posted January 19, 2014 الحين انا مسوي مود الي هو يجيب السيارات بالقريد لست حلو .. ومسوي له ماتركس وتجيهه سيارة بالجو .. الحين ابيه اذا اختار اسم سيارة من القريد لست تتغير السيارة ع حسب الي اختاره الاكواد .. carshopWindow = guiCreateWindow(500,200,290,440,"Car Shop",false) guiSetVisible (carshopWindow, false) guiSetAlpha(carshopWindow,1) guiWindowSetSizable(carshopWindow,false) selectLabel = guiCreateLabel(0.0423,0.1009,0.8889,0.078,"Select your car",true,carshopWindow) guiSetAlpha(selectLabel,1) guiLabelSetColor(selectLabel,255,255,255) guiLabelSetVerticalAlign(selectLabel,"top") guiLabelSetHorizontalAlign(selectLabel,"left",false) guiSetFont(selectLabel,"default-bold-small") carGridList = guiCreateGridList(0.0476,0.1789,0.9048,0.6789,true,carshopWindow) guiGridListSetSelectionMode(carGridList,0) carColumn = guiGridListAddColumn(carGridList,"Car",0.5) costColumn = guiGridListAddColumn(carGridList,"$",0.3) local cars = {{579,60000},{400,60000},{404,28000},{489,65000},{505,65000},{479,45000},{442,45000},{458,45000},{602,50000},{496,42500},{401,41000},{518,60000},{527,75000},{589,75000},{419,45000},{533,75000},{526,50000},{474,55000},{545,50000},{517,45000},{410,41000},{600,50000},{436,41000},{580,50000},{439,75000},{549,75000},{491,45000},{445,45000},{507,45000},{585,45000},{587,75000},{466,55000},{492,50000},{546,45000},{551,45000},{516,45000},{467,45000},{426,47500},{547,45000},{405,55000},{409,75000},{550,45000},{566,45000},{540,45000},{421,50000},{529,45000},{402,120000},{542,65000},{603,120000},{475,75000},{562,120000},{565,95000},{559,120000},{561,50000},{560,120000},{558,100000},{429,120000},{541,120000},{415,120000},{480,95000},{434,100000},{494,120000},{502,120000},{503,120000},{411,120000},{506,120000},{451,120000},{555,95000},{477,95000},{499,25000},{498,25000},{578,50000},{486,70000},{455,75000},{588,50000},{403,75000},{414,50000},{443,75000},{515,75000},{514,75000},{531,12000},{456,45000},{422,45000},{482,95000},{530,12000},{418,45000},{572,12000},{582,50000},{413,50000},{440,50000},{543,65000},{583,12000},{478,35000},{554,50000},{536,75000},{575,75000},{534,75000},{567,75000},{535,75000},{576,75000},{412,75000},{568,75000},{457,12000},{483,45000},{508,40000},{571,10000},{500,55000},{444,120000},{556,120000},{557,120000},{471,20000},{495,100000},{539,75000},{481,2500},{509,2500},{581,45000},{462,12000},{521,60000},{463,50000},{522,75000},{448,12000},{468,45000},{586,45000},{485,12000},{431,60000},{438,45000},{437,60000},{574,12000},{420,45000},{525,75000},{408,50000},{428,65000}} for i,v in ipairs (cars) do local carName = getVehicleNameFromModel (v[1]) local row = guiGridListAddRow (carGridList) guiGridListSetItemText (carGridList, row, 1, carName, false, true) guiGridListSetItemText (carGridList, row, 2, tostring(v[2]), false, true) end كود الماتركس والسيارة function un() setCameraMatrix(1878.1589355469, -2629.5012207031, 14.546875, 10000, 0, 0) car = createVehicle(400, 1888.7169189453,-2622.5610351563,16.03125038147) ob = createObject(13646, 1888.7169189453, -2622.5610351563, 12.63125038147) op = createObject(14783, 1888.80005, -2624.3999, 16.6) setObjectScale ( op, 2) setObjectScale ( ob, 2) showChat(false) showCursor(true) end Emil: [email protected]
#DRAGON!FIRE Posted January 19, 2014 Posted January 19, 2014 local GetVeh = guiGridListGetItemText (carGridList, guiGridListGetSelectedItem ( carGridList ), 1 ) function un() setCameraMatrix(1878.1589355469, -2629.5012207031, 14.546875, 10000, 0, 0) car = createVehicle(getVehicleModelFromName ( GetVeh ), 1888.7169189453,-2622.5610351563,16.03125038147) ob = createObject(13646, 1888.7169189453, -2622.5610351563, 12.63125038147) op = createObject(14783, 1888.80005, -2624.3999, 16.6) setObjectScale ( op, 2) setObjectScale ( ob, 2) showChat(false) showCursor(true) end To Contact Me at Skype : [email protected]
CRoW,,# Posted January 19, 2014 Author Posted January 19, 2014 السيارة صارت ما تظهر Emil: [email protected]
#DRAGON!FIRE Posted January 19, 2014 Posted January 19, 2014 السيارة صارت ما تظهر function un() if ( guiGridListGetSelectedItem ( carGridList ) ~= -1 ) then local GetVeh = guiGridListGetItemText (carGridList, guiGridListGetSelectedItem ( carGridList ), 1 ) setCameraMatrix(1878.1589355469, -2629.5012207031, 14.546875, 10000, 0, 0) car = createVehicle(getVehicleModelFromName ( GetVeh ), 1888.7169189453,-2622.5610351563,16.03125038147) ob = createObject(13646, 1888.7169189453, -2622.5610351563, 12.63125038147) op = createObject(14783, 1888.80005, -2624.3999, 16.6) setObjectScale ( op, 2) setObjectScale ( ob, 2) showChat(false) showCursor(true) end end تأكد انك جالس تختار ذذ To Contact Me at Skype : [email protected]
CRoW,,# Posted January 19, 2014 Author Posted January 19, 2014 للاسف مرة معد يشتغل ... Emil: [email protected]
#DRAGON!FIRE Posted January 19, 2014 Posted January 19, 2014 للاسف مرة معد يشتغل ... ورني الكود كامل . To Contact Me at Skype : [email protected]
iPrestege Posted January 19, 2014 Posted January 19, 2014 (edited) function un() setCameraMatrix(1878.1589355469, -2629.5012207031, 14.546875, 10000, 0, 0) car = createVehicle(400, 1888.7169189453,-2622.5610351563,16.03125038147) ob = createObject(13646, 1888.7169189453, -2622.5610351563, 12.63125038147) op = createObject(14783, 1888.80005, -2624.3999, 16.6) setObjectScale ( op, 2) setObjectScale ( ob, 2) showChat(false) showCursor(true) end un ( ) addEventHandler ( 'onClientGUIClick',carGridList , function ( ) if guiGridListGetSelectedItem ( source ) ~= -1 then if car and isElement ( car ) then local id = guiGridListGetItemText ( source,guiGridListGetSelectedItem ( source ),1 ) setElementModel ( car,getVehicleModelFromName ( id ) ) end end end,false ) Edited January 19, 2014 by Guest
#DRAGON!FIRE Posted January 19, 2014 Posted January 19, 2014 function un() setCameraMatrix(1878.1589355469, -2629.5012207031, 14.546875, 10000, 0, 0) car = createVehicle(400, 1888.7169189453,-2622.5610351563,16.03125038147) ob = createObject(13646, 1888.7169189453, -2622.5610351563, 12.63125038147) op = createObject(14783, 1888.80005, -2624.3999, 16.6) setObjectScale ( op, 2) setObjectScale ( ob, 2) showChat(false) showCursor(true) end un ( ) addEventHandler ( 'onClientGUIClick',carGridList , function if guiGridListGetSelectedItem ( source ) ~= -1 then if car and isElement ( car ) then local id = guiGridListGetItemText ( source,guiGridListGetSelectedItem ( source ),1 ) setElementModel ( car,getVehicleModelFromName ( id ) ) end end end,false ) نسيت القوسين حق الفنكشن ذذ To Contact Me at Skype : [email protected]
CRoW,,# Posted January 20, 2014 Author Posted January 20, 2014 function un() setCameraMatrix(1878.1589355469, -2629.5012207031, 14.546875, 10000, 0, 0) car = createVehicle(400, 1888.7169189453,-2622.5610351563,16.03125038147) ob = createObject(13646, 1888.7169189453, -2622.5610351563, 12.63125038147) op = createObject(14783, 1888.80005, -2624.3999, 16.6) setObjectScale ( op, 2) setObjectScale ( ob, 2) showChat(false) showCursor(true) end un ( ) addEventHandler ( 'onClientGUIClick',carGridList , function ( ) if guiGridListGetSelectedItem ( source ) ~= -1 then if car and isElement ( car ) then local id = guiGridListGetItemText ( source,guiGridListGetSelectedItem ( source ),1 ) setElementModel ( car,getVehicleModelFromName ( id ) ) end end end,false ) يعطيكك الف عافيةة يالحب .. Emil: [email protected]
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