#Untied Posted April 8, 2016 Share Posted April 8, 2016 سلام عليكم انا مسوي محل عربيات وحاطط 2 عربيه مثلن وضايفهم في القريد ليست وعاوز اليضعط عليهم ويضعط Buy تجيلو عربيه بس لازم يكون ب 2500ج والمش معاه فلوس . يقولو * You Dont have money والسلام عليكم # وابي مثال للجدول الفي العربيات Link to comment
#Untied Posted April 8, 2016 Author Share Posted April 8, 2016 سلام عليكم انا مسوي محل عربيات وحاطط 2 عربيه مثلن وضايفهم في القريد ليست وعاوز اليضعط عليهم ويضعط Buy تجيلو عربيه بس لازم يكون ب 2500ج والمش معاه فلوس . يقولو * You Dont have money والسلام عليكم # وابي مثال للجدول الفي العربيات Link to comment
Abdul KariM Posted April 8, 2016 Share Posted April 8, 2016 ترا مايحتاج كل شوي منزل موضوع لك موضوعين , وموضوعك الاول سويت فيه زي طلبك ذا , والحين جاي تكرره رح افهم منه زين , وعطوك الاكواد @ Link to comment
Abdul KariM Posted April 8, 2016 Share Posted April 8, 2016 ترا مايحتاج كل شوي منزل موضوع لك موضوعين , وموضوعك الاول سويت فيه زي طلبك ذا , والحين جاي تكرره رح افهم منه زين , وعطوك الاكواد @ Link to comment
#Soking Posted April 8, 2016 Share Posted April 8, 2016 مسويلك الاكواد بالموضووع الاول Link to comment
#Soking Posted April 8, 2016 Share Posted April 8, 2016 مسويلك الاكواد بالموضووع الاول Link to comment
#Untied Posted April 8, 2016 Author Share Posted April 8, 2016 عطوني الكود دا addEventHandler("onClientGUIClick",btn, function () local sel = guiGridListGetSelectedItem (grid) if sel ~= -1 then local skinID = guiGridListGetItemData (grid,sel,1) triggerServerEvent("SetSkin",localPlayer,skinID) guiSetVisible (wnd,false) guiSetInputEnabled(false) showCursor(false) end end ,false) addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source,tonumber(ID)) takePlayerMoney(source,2500) else return outputChatBox("You don't have 2500$.",source,255,5,5) end end ) كيف اعمله علي سياره بدل السكين؟ Link to comment
#Untied Posted April 8, 2016 Author Share Posted April 8, 2016 عطوني الكود دا addEventHandler("onClientGUIClick",btn, function () local sel = guiGridListGetSelectedItem (grid) if sel ~= -1 then local skinID = guiGridListGetItemData (grid,sel,1) triggerServerEvent("SetSkin",localPlayer,skinID) guiSetVisible (wnd,false) guiSetInputEnabled(false) showCursor(false) end end ,false) addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source,tonumber(ID)) takePlayerMoney(source,2500) else return outputChatBox("You don't have 2500$.",source,255,5,5) end end ) كيف اعمله علي سياره بدل السكين؟ Link to comment
iMr.WiFi..! Posted April 8, 2016 Share Posted April 8, 2016 (edited) وعليكم السلام ورحمةة .. مثال على لوب Arbia = { {"Sonta",645}, {"Sobas",623} } وهذي الفنكشنات 'onClientGUIClick' guiGridListGetSelectedItem guiGridListGetItemData takePlayerMoney createVehicle getElementPosition setElementPosition outputChatBox Edited April 8, 2016 by Guest Link to comment
iMr.WiFi..! Posted April 8, 2016 Share Posted April 8, 2016 (edited) وعليكم السلام ورحمةة .. مثال على لوب Arbia = { {"Sonta",645}, {"Sobas",623} } وهذي الفنكشنات 'onClientGUIClick' guiGridListGetSelectedItem guiGridListGetItemData takePlayerMoney createVehicle getElementPosition setElementPosition outputChatBox Edited April 8, 2016 by Guest Link to comment
Abdul KariM Posted April 8, 2016 Share Posted April 8, 2016 وعليكم السلام ورحمةة ..مثال على لوب Arbia = { {"Sonta",645}, {"Sobas",623} } وهذي الفنكشنات 'onClientGUIClick' guiGridListGetSelectedItem guiGridListGetItemData takePlayerMoney createVehicle outputChatBox .... ناقصه Link to comment
Abdul KariM Posted April 8, 2016 Share Posted April 8, 2016 وعليكم السلام ورحمةة ..مثال على لوب Arbia = { {"Sonta",645}, {"Sobas",623} } وهذي الفنكشنات 'onClientGUIClick' guiGridListGetSelectedItem guiGridListGetItemData takePlayerMoney createVehicle outputChatBox .... ناقصه Link to comment
iMr.WiFi..! Posted April 8, 2016 Share Posted April 8, 2016 انا بعطيك مثال مو كود جاهز .. addEventHandler("onClientGUIClick",btn, function () local sel = guiGridListGetSelectedItem (grid) if sel ~= -1 then local skinID = guiGridListGetItemData (grid,sel,1) triggerServerEvent("SetSkin",localPlayer,skinID) guiSetVisible (wnd,false) guiSetInputEnabled(false) showCursor(false) end end ,false) addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source,tonumber(ID)) takePlayerMoney(source,2500) else return outputChatBox("You don't have 2500$.",source,255,5,5) end end ) تعلم وعدل عليه ترا الكود حقك سهل Link to comment
iMr.WiFi..! Posted April 8, 2016 Share Posted April 8, 2016 انا بعطيك مثال مو كود جاهز .. addEventHandler("onClientGUIClick",btn, function () local sel = guiGridListGetSelectedItem (grid) if sel ~= -1 then local skinID = guiGridListGetItemData (grid,sel,1) triggerServerEvent("SetSkin",localPlayer,skinID) guiSetVisible (wnd,false) guiSetInputEnabled(false) showCursor(false) end end ,false) addEvent("SetSkin" ,true) addEventHandler("SetSkin" ,root, function (ID) PMoney = getPlayerMoney(source) if PMoney >= 2500 then setElementModel(source,tonumber(ID)) takePlayerMoney(source,2500) else return outputChatBox("You don't have 2500$.",source,255,5,5) end end ) تعلم وعدل عليه ترا الكود حقك سهل Link to comment
YourMind Posted April 8, 2016 Share Posted April 8, 2016 هات شغلك كامل و هاعدلك عليه بس حاول تتعلم من اللي هاعمله علي الاقل Link to comment
YourMind Posted April 8, 2016 Share Posted April 8, 2016 هات شغلك كامل و هاعدلك عليه بس حاول تتعلم من اللي هاعمله علي الاقل Link to comment
#Untied Posted April 8, 2016 Author Share Posted April 8, 2016 local screenW, screenH = guiGetScreenSize() wnd = guiCreateWindow(504, 193, 296, 378, ":: Vehicle Systeam ::", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) guiSetVisible(wnd, false) btn = guiCreateButton(16, 264, 270, 37, "Buy", false, wnd) close = guiCreateButton(17, 305, 269, 37, "X", false, wnd) Label = guiCreateLabel(144, 350, 185, 18, "Created By [# | v1.2", false, wnd) guiLabelSetColor(Label, 255, 0, 0) grid = guiCreateGridList(9, 23, 273, 231, false, wnd) guiGridListAddColumn(grid, "Name Vehicle", 0.5) guiGridListAddColumn(grid, "ID", 0.5) bindKey ( "F6", "down", function ( ) guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end ) Link to comment
#Untied Posted April 8, 2016 Author Share Posted April 8, 2016 local screenW, screenH = guiGetScreenSize() wnd = guiCreateWindow(504, 193, 296, 378, ":: Vehicle Systeam ::", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) guiSetVisible(wnd, false) btn = guiCreateButton(16, 264, 270, 37, "Buy", false, wnd) close = guiCreateButton(17, 305, 269, 37, "X", false, wnd) Label = guiCreateLabel(144, 350, 185, 18, "Created By [# | v1.2", false, wnd) guiLabelSetColor(Label, 255, 0, 0) grid = guiCreateGridList(9, 23, 273, 231, false, wnd) guiGridListAddColumn(grid, "Name Vehicle", 0.5) guiGridListAddColumn(grid, "ID", 0.5) bindKey ( "F6", "down", function ( ) guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end ) Link to comment
YourMind Posted April 8, 2016 Share Posted April 8, 2016 local screenW, screenH = guiGetScreenSize() wnd = guiCreateWindow(504, 193, 296, 378, ":: Vehicle Systeam ::", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 1.00) guiSetVisible(wnd, false) btn = guiCreateButton(16, 264, 270, 37, "Buy", false, wnd) close = guiCreateButton(17, 305, 269, 37, "X", false, wnd) Label = guiCreateLabel(144, 350, 185, 18, "Created By [# | v1.2", false, wnd) guiLabelSetColor(Label, 255, 0, 0) grid = guiCreateGridList(9, 23, 273, 231, false, wnd) guiGridListAddColumn(grid, "Name Vehicle", 0.5) guiGridListAddColumn(grid, "ID", 0.5) bindKey ( "F6", "down", function ( ) guiSetVisible ( wnd, not guiGetVisible ( wnd ) ) showCursor ( guiGetVisible ( wnd ) ) end ) بجد ؟ هو دة شغلك كامل؟ عملت التصميم و فتح بالزر و خلاص ؟ D; 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