Jump to content

^#Dream

Members
  • Posts

    236
  • Joined

  • Last visited

Everything posted by ^#Dream

  1. ^#Dream

    طلب

    آنآ ماني متاكدد بس يمكن تقدر تسويها بـ onPlayerJoin -- Event UnbindKey على ماظن
  2. آلسسلآم عليكم آبي اعرف كيف اخلي للسكربت Settings ? يعني مثلا اروح لـ Resources واضغط على السكربت مرتين يطلع لي الـ Settings
  3. آلرجاء اغلاق الموضوع !
  4. آلسسلآم عليكم آبي كود اذا ضغط على الرو تجي جنوط على السيارة + لو ضغط الغاء تروح الجنوط + يرجع الجنط حق السيارة الاصلي
  5. السلام عليكم انا عندي ذا السكربت vehicles = {} function toggleFlashingLights ( thePlayer, key, keyState ) if getPlayerOccupiedVehicleSeat ( thePlayer ) == 0 then if vehicles[getPlayerOccupiedVehicle ( thePlayer )] then killTimer ( vehicles[getPlayerOccupiedVehicle ( thePlayer )] ) vehicles[getPlayerOccupiedVehicle ( thePlayer )] = nil else vehicles[getPlayerOccupiedVehicle ( thePlayer )] = setTimer ( toggleVehicleLights, 250, 0, getPlayerOccupiedVehicle ( thePlayer ) ) end end end addCommandHandler ( "ff", toggleFlashingLights ) bindKey ( "]", "down", toggleFlashingLights ) function toggleVehicleLights ( car ) if ( getVehicleOverrideLights ( car ) ~= 2 ) then setVehicleOverrideLights ( car, 2 ) else setVehicleOverrideLights ( car, 1 ) end end انا مسوي بند كي بس مازبط اضغط د مايدق فلشر الديبق مايقول شي #
  6. errMsg هذي تطلع لو ماكان عندهه سيارةة !!!
  7. السلام عليكم ابي اعرف كيف اخلي اذا كان داخل السيارة وضغط على التعديلات يقول له رح للورشة عشان تعدل على السيارةة --------------------------- -- Vehicle upgrades --------------------------- function upgradesInit() local vehicle = getPedOccupiedVehicle(g_Me) if not vehicle then errMsg('يجب ان تكون داخل السياره للتعديل عليها.') closeWindow(wndUpgrades) return end local installedUpgrades = getVehicleUpgrades(vehicle) local compatibleUpgrades = {} local slotName, group for i,upgrade in ipairs(getVehicleCompatibleUpgrades(vehicle)) do slotName = getVehicleUpgradeSlotName(upgrade) group = table.find(compatibleUpgrades, 'name', slotName) if not group then group = { 'group', name = slotName, children = {} } table.insert(compatibleUpgrades, group) else group = compatibleUpgrades[group] end table.insert(group.children, { id = upgrade, installed = table.find(installedUpgrades, upgrade) ~= false }) end table.sort(compatibleUpgrades, function(a, b) return a.name < b.name end) bindGridListToTable(wndUpgrades, 'upgradelist', compatibleUpgrades, true) end function selectUpgrade(leaf) setControlText(wndUpgrades, 'addremove', leaf.installed and 'remove' or 'add') end function addRemoveUpgrade(selUpgrade) -- Add or remove selected upgrade local vehicle = getPedOccupiedVehicle(g_Me) if not vehicle then return end if not selUpgrade then selUpgrade = getSelectedGridListLeaf(wndUpgrades, 'upgradelist') if not selUpgrade then return end end if selUpgrade.installed then -- remove upgrade selUpgrade.installed = false setControlText(wndUpgrades, 'addremove', 'add') server.removeVehicleUpgrade(vehicle, selUpgrade.id) else -- add upgrade local prevUpgradeIndex = table.find(selUpgrade.siblings, 'installed', true) if prevUpgradeIndex then selUpgrade.siblings[prevUpgradeIndex].installed = false end selUpgrade.installed = true setControlText(wndUpgrades, 'addremove', 'remove') server.addVehicleUpgrade(vehicle, selUpgrade.id) end end wndUpgrades = { 'wnd', text = 'التعديلات', width = 300, x = -20, y = 0.3, controls = { { 'lst', id='upgradelist', width=280, height=340, columns={ {text='Upgrade', attr='id', width=0.6}, {text='Installed', attr='installed', width=0.3, enablemodify=true} }, onitemclick=selectUpgrade, onitemdoubleclick=addRemoveUpgrade }, {'btn', id='اضافه/ازاله', text='add', width=60, onclick=addRemoveUpgrade}, {'btn', id='موافق', closeswindow=true} }, oncreate = upgradesInit } function addUpgradeCommand(cmd, upgrade) local vehicle = getPedOccupiedVehicle(g_Me) if vehicle and upgrade then server.addVehicleUpgrade(vehicle, tonumber(upgrade) or 0) end end addCommandHandler('addupgrade', addUpgradeCommand) addCommandHandler('au', addUpgradeCommand) function removeUpgradeCommand(cmd, upgrade) local vehicle = getPedOccupiedVehicle(g_Me) if vehicle and upgrade then server.removeVehicleUpgrade(vehicle, tonumber(upgrade) or 0) end end addCommandHandler('removeupgrade', removeUpgradeCommand) addCommandHandler('ru', removeUpgradeCommand)
  8. الله يعطيك العافيةة
  9. طيب ياليت احد يفيدني بالكود الثاني ابيهه اذا جاء يشتري ودمه 100 مايقدر يشتري
  10. الله يعطيكم العافيةة افادني ابو شنب طلعت من الصوره الي تخليها شفافه مثل كذا مو من الـ Alpha
  11. جربت الشفافيهه مازبطت ماجت زي الشكل الي نفس الصورهه ! + الكود كامل خاصص تعال سكايب اعطيك اياهه
  12. + بدال ما افتح موضوع جديد آبي اعرف حل للكود ذا function() local PlayerMoney = getPlayerMoney(source) if ( PlayerMoney >= 100) then takePlayerMoney(source,100) setElementHealth ( source, getElementHealth(source) + 10 ) local name = getPlayerName(source) end end ) ابيه اذا جيت يشتري الـ Health ودمه 100 ماياخذ من فلوسسه
  13. السسلآم عليكم ورحمة الله وبركاتهه كـل عام وانتم بخير آنآ ابي اعرف كيف اخلي النافذهه حقتي مثل كذا شفافهه ! وشـكرا لكم مقدما جربت guiSetAlpha ماجت زي الشكل الي ابيه
  14. انا حاط فوق guiGridListSetItemText(GridList, 4, 1, "Health6", false, false) guiGridListSetItemText(GridList, 4, 2, "2500", false, false) وانت مسحتها وحطيت بالتيبل حقت الصور Health health1.png يطلع الاسم Health بس ابي اطلع السعر بعد !
  15. + جتني مشكلة ثانية اذا ضغطت على صورة وضغطت على رو ثاني ماتروح الصورة الاولى GUIEditor = { button = {}, staticimage = {} } Window = guiCreateWindow(281, 109, 320, 393, "- [ Health Shop ] - ", false) guiWindowSetSizable(Window, false) guiSetAlpha(Window, 1.00) GridList = guiCreateGridList(9, 20, 159, 363, false, Window) Col = guiGridListAddColumn(GridList, "Menu", 0.5) Col = guiGridListAddColumn(GridList, "Price", 0.5) for i = 1, 8 do row = guiGridListAddRow(GridList) end guiGridListSetItemText(GridList, 0, 1, "Health1", false, false) guiGridListSetItemText(GridList, 0, 2, "100", false, false) guiGridListSetItemText(GridList, 1, 1, "Health2", false, false) guiGridListSetItemText(GridList, 1, 2, "500", false, false) guiGridListSetItemText(GridList, 2, 1, "Health3", false, false) guiGridListSetItemText(GridList, 2, 2, "1000", false, false) guiGridListSetItemText(GridList, 2, 2, "Health4", false, false) guiGridListSetItemText(GridList, 2, 2, "1500", false, false) guiGridListSetItemText(GridList, 3, 1, "Health5", false, false) guiGridListSetItemText(GridList, 3, 2, "2000", false, false) guiGridListSetItemText(GridList, 4, 1, "Health6", false, false) guiGridListSetItemText(GridList, 4, 2, "2500", false, false) Button = guiCreateButton(178, 351, 132, 32, "= [ Close ] =", false, Window) guiSetProperty(Button, "NormalTextColour", "FFAAAAAA") Button1 = guiCreateButton(178, 305, 132, 32, "= [ Buy ] =", false, Window) guiSetProperty(Button2, "NormalTextColour", "FFAAAAAA") guiSetVisible(Window, true) function hidegui() guiSetVisible(Window, false) showCursor ( false ) end addEventHandler ( "onClientGUIClick", Button, hidegui, false ) addEventHandler("onClientGUIClick", guiRoot, function() if source == Button1 then local row = guiGridListGetSelectedItem(GridList) if row == 0 then triggerServerEvent("setMyHealth", localPlayer) elseif row == 1 then triggerServerEvent("setMyHealth1", localPlayer) elseif row == 2 then triggerServerEvent("setMyHealth2", localPlayer) elseif row == 3 then triggerServerEvent("setMyHealth3", localPlayer) elseif row == 4 then triggerServerEvent("setMyHealth4", localPlayer) end end end) ImgTable = { { "health", "health1.png" }; { "health2", "health2.png" }; { "img3", "img3.png" }; -- { "imgName, "filePath" }; }; img = guiCreateStaticImage ( 171, 21, 139, 257, ImgTable [ 1 ][ 2 ], false, Window ); guiSetVisible ( img, false ); for i, v in ipairs ( ImgTable ) do guiGridListSetItemText ( GridList, row, 1, v [ 1 ], false, false ); guiGridListSetItemData ( GridList, row, 1, v [ 2 ] ); end addEventHandler ( "onClientGUIClick", root, function ( ) if source == GridList then if guiGetVisible ( img ) == false then guiSetVisible ( img, true ); end local filePath = guiGridListGetItemData ( GridList, guiGridListGetSelectedItem ( GridList ), 1 ); if filePath and filePath ~= "" then guiStaticImageLoadImage ( img, filePath ); end end end );
  16. الله يعطيك العافيةة ! بس بغيت لو فتح النافذه يطلع له صورةة X يعني بدون مايضغط على رو جربت احط صورهه بس مانفع لو اضغط على بتطلع الصوره فوق الـ x
  17. السلام عليكم كيف الحال ؟ انا ابي اععرف كيف اخلي لو ضغطت على رو من القريد لست تجي صورهه بالنافذهه ؟ وشكرا لكم مقدمآ
  18. مايقول شي بس يوم رجعتهه سيرفر وعدلته عليه شويه وخليته if ( isPedInVehicle ( localPlayer ) then importHandling ( getPedOccupiedVehicle ( localPlayer ), "allhedit", "SA") يقول لي ERROR : Client (Dream) triggered serverside event hedit, but event is not added serverside
  19. جربت احط السيرفر بالكنلت بس مازبط
  20. -- Client local xs,ys = guiGetScreenSize() function guiCreateWindow(x2,y2,width2,height2,titleBarText2,relative2) local mainBackground = guiCreateStaticImage(x2,y2,width2,height2,'img/logo.png',relative2) guiSetProperty(mainBackground,'ImageColours','tl:BE000000 tr:BE000000 bl:BE000000 br:BE000000') return mainBackground end GUIEditor = { gridlist = {}, button = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow((xs-259)/2, (ys-353)/2, 259, 353, 'Handling Window', false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetVisible(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(9, 29, 240, 274, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], '#', 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], 'handling', 0.5) guiSetProperty(GUIEditor.button[1], 'NormalTextColour', 'FFAAAAAA') GUIEditor.button[1] = guiCreateStaticImage(55,308,146,36,'img/logo.png',false,GUIEditor.window[1]) label = guiCreateLabel(50,9,60,20,'[ Apply ]',false,GUIEditor.button[1]) guiLabelSetColor(label,0,0,0) guiSetFont(label,'sans') guiSetFont(GUIEditor.gridlist[1],'default-bold-small') bindKey('F4','down', function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) allhedit = { {'وزنية تطوير','1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0'}, {'وزنية تبوك','1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0'}, {'بعدين نكمل','1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0'}, {"وزنية مسرع بشويش","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية هتلر العتبان","1601.0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.30 0.8 0.70 5 260.0 33.0 33.0 F P 5.4 0.90 1 50.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية ابو زهرة","1400 2800 2 0 -0.2 -0.24 70 0.75 0.86 0.48 5 8000 8000 5 4 d 8 0.52 false 45 1 0.2 0 0.25 -0.1 0.5 0.3 0.4 0 105000 40002004 208000 0 0 1"}, {"وزنية ترفيع","5500 33187.9 5 0 0 -0.2 90 0.6 0.9 0.5 4 110 20 30 R D 3.5 0.4 0 30 1 0.06 0 0.45 -0.25 0.55 0.3 0.45 0.2 5000 4008 200 0 1 0"}, {"وزنية نواف للترفيع","5500 49187.898 5 -0.25 0 -0.25 90 0.6 0.9 0.5 4 509 15 99 r p 3.5 0.4 false 30 1 0.06 0 0.45 -0.25 0.55 0.3 0.45 0.2 35000 4008 200 1 1 1"}, {"وزنية ابو لجين","1601 2200 1.8 0 0 -0.05 70 0.5 0.8 0.7 5 220 33 16 4 p 5.4 0.9 false 40 0.85 0.14 0 0.4 -0.14 0.5 0 0.26 0 105000 0 0 0 0 1"}, {"وزنية ابو صقر","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية سرعه صاروخية","2600 3000 0 0 0.2 -0.7 70 2 2 0.4 5 200000 1000 9.9 4 e 52 0.52 false 30 1.2 0.7 0 0.31 -0.15 0.5 0.3 0.24 0 45000 0 C00000 1 1 1"}, {"وزنية بدور","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية فرنسي الشرق","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.30 0.8 0.70 5 260.0 33.0 33.0 F P 5.4 0.90 1 50.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية كنق التطويف","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية درفت","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية مسرع بشويش بلص","1500.0 1200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية ماي كاب","6500 36670.8 3 0 0 0 90 0.55 0.8 0.5 5 170 27 10 R D 10 0.45 0 27 1.2 0.08 0 0.47 -0.17 0.5 0 0.2 0.26 15000 4098 0 0 1 2"}, {"وزنية رفع 2","1450 4056.4 2.2 0 0.3 -0.25 75 0.8 0.75 0.45 5 180 19 10 F P 9.1 0.6 0 35 1.4 0.1 0 0.25 -0.15 0.54 0 0.2 0.51 20000 0 200000 0 1 0"}, {"وزنية هجولة","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.46 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.130 1 45.0 0.95 0.14 0.0 0.80 -0.24 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية مشاري","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية النخيل","0 2200.0 0.-1 0.0 0.-0 -0.05 -70 0.50 0.8 0.70 5 220.0 33.0 16.0 F P 5.4 0.90 1 40.0 0.85 0.14 0.0 0.40 -0.14 0.5 0.0 0.26 0.00 19000 0 0 0 3 0"}, {"وزنية مهجول مجنون","2000.0 4400.0 1.2 0.0 0.24 -0.15 75 0.734 0.734 0.509 5 210.0 24.3 5.8 R P 18.0 0.54 1 33.5 0.935 0.08 2.0 0.285 -0.147 0.5 0.09 0.2 0.51 35000 110000 1000000 0 1 0"}, {"وزنية اللعبة الاصليه","1200.0 2998.3 2.0 0.0 0.1 -0.8 75 0.70 0.80 0.47 5 350.0 50.0 5.0 R P 8.0 0.45 0 55.0 1.4 0.15 0.0 0.28 -0.05 0.5 0.3 0.25 0.10 35000 00110000 00c24007 0 2 0"}, {"وزنية توب","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.46 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.130 1 45.0 0.95 0.14 0.0 0.80 -0.23 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية اواكس","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية تنكيس","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية تطعيس","1400 2725.3 0 0 0 -0.25 70 0.7 0.8 0.5 5 2500 15 0.2 R P 52 0.52 0 30 1.2 0.5 0 0.25 -0.1 0.5 0.4 0.37 0.045 95000 40002004 C04000 1 1 1"}, {"وزنية اليقضان","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.47 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.18 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية تهبيط","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية لجند","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية ابو وزا","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.46 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.130 1 45.0 0.95 0.14 0.0 0.80 -0.24 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية هجولة الدائري","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.10 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية البليهد","1500.0 6200.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 5.4 0.9990 1 45.0 0.95 0.14 0.0 0.80 -0.25 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية ابو شنب","1600.0 1900.0 0.1 0.0 0.0 -0.05 70 0.50 0.8 0.70 5 800.0 33.0 16.0 F P 2.1 999.90 1 45.0 2.5 0.14 0.0 1.20 -0.10 0.5 -0.7 0.00 0.00 19000 999 999 0 3 0"}, {"وزنية تفجير","8000 2200 2 0 0 -0.05 70 0.4 0.3 0.5 5 220 33 16 r p 5.4 0.9 false 40 0.85 0.3 0 0.7 -0.21 0.4 0 0.26 0 35000 0 0 1 1 1"}, {"وزنية تفجير2","1601 2200 1.8 0 0 -0.05 70 0.5 0.8 0.7 5 220 33 16 r p 5.4 0.9 false 40 0.85 0.14 0 0.4 -0.1 0.3 0 0.26 0 35000 0 0 1 1 1"}, {"وزنية كي اس ايه","1800 4350 2.2 0 0 -0.1 80 0.6 0.85 0.7 5 800 200 16 f p 8 0.5 false 50 0.8 0.08 0 0.9 -0.7 0.5 0 0.36 0 35000 40000000 10000000 1 1 0"}, {"وزنية كسر الدرفت على البحر","1400 3500 0 0 0 -0.9 120 2 10 0.8 5 99999 99999 10 4 p 52 0.52 false 77 1.2 0.7 0 0.31 -0.15 0.5 0.3 0.24 0 19000 EC0000 C00001 0 3 0"}, {"وزنية تحريك الكفر اللي ورا","5000 20000 3 0 0 -0.35 80 0.65 0.85 0.55 5 110 18 25 4 p 7 0.45 false 35 1.5 0.07 0 0.45 -0.3 0.5 0.3 0.44 0.35 35000 28 1300045 0 1 0"}, {"وزنية هجولة وتطويف","1601 2200 2 0 0 -0.05 70 0.3 0.8 0.9 5 260 33 33 f p 5.4 0.9 false 50 0.85 0.14 0 0.4 -0.14 0.5 0 0.26 0 35000 0 0 1 1 0"}, {"وزنية تنطيل","1800 2200 2.2 0 0 -0.01 80 0.6 0.85 0.7 5 220 33 16 f p 8 0.5 false 40 0.8 0.08 0 0.9 -0.6 0.5 0 0.26 0 19000 0 0 0 3 0"}, {"وزنية خطيرة","1600.0 2200.0 0.1 0.0 0.0 -0.05 70 0.47 0.8 0.70 5 300.0 33.0 16.0 F P 5.4 0.90 1 45.0 0.95 0.14 0.0 0.80 -0.18 0.5 -0.7 0.00 0.00 19000 0 0 0 3 0"}, {"وزنية هتلر","1500 3500 2.2 0 0.3 -0.15 75 1 0.9 0.5 5 190000 90000 1000 4 p 8 0.5 false 75 1 0.2 0 0.28 -0.1 0.5 0.3 0.25 0 45000 40002800 4000000 1 1 1"}, {"وزنية رفع + سرعه","1700 5008.3 2.5 0 0 -0.3 85 0.75 0.85 0.5 5 99999 99999 20 4 d 6.2 0.6 false 75 2.4 0.08 0 0.28 -1 0.5 0.25 0.27 0.23 105000 20 500002 0 0 1"}, } for i,v in ipairs(allhedit) do row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], row, 1, tostring(i), false, false) guiGridListSetItemData(GUIEditor.gridlist[1], row, 1, tostring(i)) guiGridListSetItemText(GUIEditor.gridlist[1], row, 2, tostring(v[1]), false, false) guiGridListSetItemData(GUIEditor.gridlist[1], row, 2, tostring(v[1])) guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(255),math.random(255),math.random(255)) guiGridListSetItemColor(GUIEditor.gridlist[1],row,2,math.random(255),math.random(255),math.random(255)) end addEventHandler('onClientGUIClick',guiRoot, function() if ( source == GUIEditor.button[1] ) then local row = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) triggerServerEvent('hedit',localPlayer,allhedit[row + 1]) elseif ( source == label ) then local row = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) triggerServerEvent('hedit',localPlayer,allhedit[row + 1]) end end ) addEventHandler('onClientMouseEnter',guiRoot, function() if ( source == GUIEditor.button[1] ) then guiSetProperty(GUIEditor.button[1],'ImageColours','tl:BE000000 tr:BE000000 bl:BE000000 br:BE000000') guiLabelSetColor(label,255,255,255) elseif ( source == label ) then guiSetProperty(GUIEditor.button[1],'ImageColours','tl:BE000000 tr:BE000000 bl:BE000000 br:BE000000') guiLabelSetColor(label,255,255,255) end end ) addEventHandler('onClientMouseLeave',guiRoot, function() if ( source == GUIEditor.button[1] ) then guiSetProperty(GUIEditor.button[1],'ImageColours','tl:B4FFFFFF tr:B4FFFFFF bl:B4FFFFFF br:B4FFFFFF') guiLabelSetColor(label,0,0,0) elseif ( source == label ) then guiSetProperty(GUIEditor.button[1],'ImageColours','tl:B4FFFFFF tr:B4FFFFFF bl:B4FFFFFF br:B4FFFFFF') guiLabelSetColor(label,0,0,0) end end ) addEvent('hedit',true) addEventHandler('hedit',root, function(data) if ( isPedInVehicle(source) ) then Vehicle = getPedOccupiedVehicle(source) exports.hedit:importHandling(getPedOccupiedVehicle(localPlayer), allhedit, "SA") outputChatBox('* Done !',source,0,255,0,false) else outputChatBox('* Dont Have Vehicle',source,255,0,0,false) end end ) -- Server addEvent('hedit',true) addEventHandler('hedit',root, function(data) if ( isPedInVehicle(source) ) then Vehicle = getPedOccupiedVehicle(source) exports.hedit:importHandling(Vehicle,data, allhedit, "SA") outputChatBox('* Done !',source,0,255,0,false) else outputChatBox('* Dont Have Vehicle',source,255,0,0,false) end end )
×
×
  • Create New...