^#Dream Posted July 21, 2014 Share Posted July 21, 2014 عندي مشكلة بالسكربت ذا لاجيت سويت استخدام للوزنية يجني بالديبق hedit\Server.lua:6: attempt to call global 'importHandling' (a nil value) سيرفر addEvent('hedit',true) addEventHandler('hedit',root, function(data) if ( isPedInVehicle(source) ) then Vehicle = getPedOccupiedVehicle(source) importHandling(veh,data,'SA') outputChatBox('* Done !',source,0,255,0,false) else outputChatBox('* Dont Have Vehicle',source,255,0,0,false) end end ) Link to comment
#DRAGON!FIRE Posted July 21, 2014 Share Posted July 21, 2014 اعتقد انه الفنكشن اكسبورت ! Link to comment
^#Dream Posted July 21, 2014 Author Share Posted July 21, 2014 جربت اكسبورت نفس المششكله Link to comment
#DRAGON!FIRE Posted July 21, 2014 Share Posted July 21, 2014 في عندك خطا استبدله الى .. : importHandling(Vehicle ,data,'SA') + ورني وش سويت Link to comment
^#Dream Posted July 21, 2014 Author Share Posted July 21, 2014 ^ ماصار شي يطلع نفس الخطاء بالديبق + الاكسبورت سويته كذا 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 ) Link to comment
^#Dream Posted July 23, 2014 Author Share Posted July 23, 2014 -- 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 ) Link to comment
^#Dream Posted July 23, 2014 Author Share Posted July 23, 2014 جربت احط السيرفر بالكنلت بس مازبط Link to comment
#=|>[A]sMr,\~> Posted July 23, 2014 Share Posted July 23, 2014 جربت احط السيرفر بالكنلت بس مازبط وش يقول لك الدي بق يوم جربته بالكلينت ؟ Link to comment
^#Dream Posted July 23, 2014 Author Share Posted July 23, 2014 مايقول شي بس يوم رجعتهه سيرفر وعدلته عليه شويه وخليته if ( isPedInVehicle ( localPlayer ) then importHandling ( getPedOccupiedVehicle ( localPlayer ), "allhedit", "SA") يقول لي ERROR : Client (Dream) triggered serverside event hedit, but event is not added serverside Link to comment
#=|>[A]sMr,\~> Posted July 23, 2014 Share Posted July 23, 2014 مايقول شيبس يوم رجعتهه سيرفر وعدلته عليه شويه وخليته if ( isPedInVehicle ( localPlayer ) then importHandling ( getPedOccupiedVehicle ( localPlayer ), "allhedit", "SA") يقول لي ERROR : Client (Dream) triggered serverside event hedit, but event is not added serverside الكود ترايقر سيرفر تاكد من الترايقر الي في الكلينت Link to comment
AboShanab Posted July 23, 2014 Share Posted July 23, 2014 -- # Client Side ! local xs,ys = guiGetScreenSize() local GUIEditor = { gridlist = {}, button = {}, label = {}, window = {} } local 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"}, } 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 addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) 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) 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, 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 guiSetProperty(GUIEditor.button[1], 'NormalTextColour', 'FFAAAAAA') GUIEditor.button[1] = guiCreateStaticImage(55,308,146,36,'img/logo.png',false,GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(50,9,60,20,'[ Apply ]',false,GUIEditor.button[1]) guiLabelSetColor(GUIEditor.label[1],0,0,0) guiSetFont(GUIEditor.label[1],'sans') guiSetFont(GUIEditor.gridlist[1],'default-bold-small') end) bindKey ( 'F4','down', function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) addEventHandler ( 'onClientGUIClick', root, function () if ( source == GUIEditor.button[1] or source == GUIEditor.label[1] ) then if ( guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 ) then if ( isPedInVehicle ( localPlayer ) ) then if ( getVehicleController ( getPedOccupiedVehicle ( localPlayer ) ) == localPlayer ) then local data = allhedit [ guiGridListGetItemData ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) ] [ 2 ] exports.hedit:importHandling ( getPedOccupiedVehicle ( localPlayer ), data, "SA" ) outputChatBox("* تم تركيب وزنيتكـ بـ نجاح", 255, 255, 0, true) else outputChatBox("* يجب ان تكون المتحكم بـ السيارة", 255, 0, 0, true) end else outputChatBox("* يجب ان تكون لديكـ سيارة", 255, 0, 0, true) end else outputChatBox("* من فضلكـ اختر وزنية", 255, 0, 0, true) end end end ) addEventHandler ( 'onClientMouseEnter', root, function () if ( source == GUIEditor.button[1] or source == GUIEditor.label[1] ) then guiSetProperty(GUIEditor.button[1],'ImageColours','tl:BE000000 tr:BE000000 bl:BE000000 br:BE000000') guiLabelSetColor(GUIEditor.label[1],255,255,255) end end ) addEventHandler ( 'onClientMouseLeave', root, function () if ( source == GUIEditor.button[1] or source == GUIEditor.label[1] ) then guiSetProperty(GUIEditor.button[1],'ImageColours','tl:B4FFFFFF tr:B4FFFFFF bl:B4FFFFFF br:B4FFFFFF') guiLabelSetColor(GUIEditor.label[1],0,0,0) end end ) بعد م تسوي ها الخطوة رح لـ مود hedit وضف ع الميتا هذا السطر تحت function="importHandling" type="client" /> 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