Leaderboard
Popular Content
Showing content with the highest reputation on 09/11/17 in all areas
-
ماتحتاج لوب carMapArabic = { {"الدائري",1777.6489257813, 858.43225097656, 3.2231502532959}, {"الشرقي",2698.7241210938, 1086.1610107422, 4.4072132110596}, {"النخيل",2116.9462890625, 1862.8112792969, 9.3178720474243}, {"الغروبي",1199.2459716797, 1042.6872558594, 4.894775390625} }; addEventHandler("onClientResourceStart", root, function() local RandomPlace = math.random(1,#carMapArabic) outputChatBox( carMapArabic[RandomPlace][1] ) --Outputs. createMarker (carMapArabic[RandomPlace][2],carMapArabic[RandomPlace][3],carMapArabic[RandomPlace][4] ,"checkpoint",2) end )2 points
-
هكذِا هم البشر! آن كنت آفضل منهم حسدوك وآن كنت آقل منهم تكبروآ ..? ﺑعضَ آلبشرَ حگايہَ جميلهہَ لنَ يعيَدهاا الزمَان ﻣرتينَ ..?2 points
-
"onClientGUIClick" guiGridListGetSelectedItem guiCreateStaticImage guiSetVisible guiStaticImageLoadImage2 points
-
Welcome to Dynasty Network, Yeah we had a topic before the cleanup but this time we cameback bigger and better. Our topic will be managed way better then it was before and i'll put all my time into keeping this up to date also backups will be made daily. I hope you like this @HAZJ. But that's it about the topic. Now let's head into the server and show what we are currently Developing. We are currently in Alpha state and are testing / optimising everything so you guys won't encounter bugs. This is due the fact we got a strict punishment if it goes about bug abusing and such. Getting caught using bugs etc in your advantage will result in a permanent ban. Feel free to leave a like and reaction, I would really love it since it's showing interest and that you are supporting the development of it. You can find us on our forums which are currently under development.Go to Forum to make sure you have an account when you try to join our server. Also make sure you join our discord channel on the following link : Coming soon , We aren't going to give our server IP yet due the fact we are still developing the server. But as soon as it is done i'll release the ip so you guys can join and checkout our brand new community. Previews will be showcased when I do think it's ready to get spread1 point
-
وعليكم السلام ! Xml File (questions.xml) : <questions> <question question="من هم اصحاب السيرفر"> <answer>Source</answer> <answer>Anotherone</answer> </question> </questions> Client : local gridlist = gridlist -- put your gridlist here local memo = memo -- put your memo here local xml = xmlLoadFile("questions.xml") for index, node in pairs ( xmlNodeGetChildren ( xml ) ) do local question = xmlNodeGetAttribute ( node, "question" ) local answers = { } for key, answer in pairs ( xmlNodeGetChildren ( node ) ) do table.insert ( answers, xmlNodeGetValue( answer ) ) end local row = guiGridListAddRow ( gridlist ) guiGridListSetItemText ( gridlist, row, 1, question .."?", false, false ) guiGridListSetItemData ( gridlist, row, 1, answers ) end xmlUnloadFile(xml) addEventHandler ( "onClientGUIClick", root, function ( ) if source == gridlist then local selected = guiGridListGetSelectedItem ( gridlist ) if selected ~= -1 then guiSetText ( memo, table.concat( guiGridListGetItemData ( gridlist, selected ), '\n' ) ) end end end )1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
جرب : vehicleArabic = { [ 604 ] = 'كامري 2015', [ 585 ] = 'سوناتا 2015' }; addEventHandler ( 'onClientVehicleEnter', root, function ( ) local carNum = cars [ getElementModel ( source ) ] if ( carNum ) then outputChatBox ( carNum ) end end )1 point
-
--Client GUIEditor = { button = {}, window = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(295, 243, 381, 435, "[ Buy Hetlah v1.0 ]", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FFFEFEFE") guiSetVisible(GUIEditor.window[1] , false) GUIEditor.label[1] = guiCreateLabel(0.19, 0.07, 0.67, 0.03, "مرحبآ بك ف لوحة الرئيسية ! لشراء الصحة", true, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 253, 113, 0) guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true) GUIEditor.label[2] = guiCreateLabel(102, 63, 161, 15, "قم بضغط على الزر ادناه لشراءه", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 23, 252, 0) GUIEditor.label[3] = guiCreateLabel(129, 110, 111, 15, "سعر الصحة $ 200 $", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 251, 243, 0) GUIEditor.label[4] = guiCreateLabel(10, 177, 361, 15, "_________________________________________________________", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(148, 270, 82, 45, "Buy", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFBF300") GUIEditor.label[5] = guiCreateLabel(110, 406, 149, 15, "Programming By FANTA2017-2018", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[5], "default-small") guiLabelSetColor(GUIEditor.label[5], 251, 243, 0) end ) addEventHandler ( "onClientGUIClick" , root , function ( ) if ( source == GUIEditor.button[1] ) then triggerServerEvent("Buy;Health", localPlayer) end end ) function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F7", "down", OpenWin) --Server addEvent("Buy;Health", true) addEventHandler("Buy;Health",root, function( ) if getPlayerMoney(source) > 199 then takePlayerMoney(source,200) setElementHealth(source, 200) playSoundFrontEnd(source, 20) else outputChatBox("You don't have enough money", source, 255,0,0,true) end end)1 point
-
1 point
-
مثال لوش ؟ img = guiCreateStaticImage( x, y , ......) -- الصورة guiSetVisible( img , false ) addEventHandler("onClientGUIClick",root, -- حدث ضغط الزر function( ) -- وظيفة if ( source == gridlist ) then -- يتحقق انه ضغط بالجريد ليست local sel = guiGridListGetSelectedItem( gridlist ) -- يجبلك الي حدده بالجريد ليست if sel == 0 then -- يتحقق انه اختار الرو الاول بالجريد ليست guiSetVisible( img , true) -- يفتح الصورة عند الضغط علي الرو guiStaticImageLoadImage(img,"اسم الصورة.صيغتها") -- يغيرلك الصورة end -- نهاية الشرط الاول end -- نهاية الشرط الثاني end) -- نهاية + قوس للوظيفة1 point
-
1 point
-
1 point
-
يخوي احتلت ردودك المنتدى بأكمله , مدري من متحداك تجيب 10 الاف بوست بس مالها داعي ترد على كل صغيرة وكبيرة !1 point
-
1 point
-
جرب : addEventHandler ( 'onResourceStart', resourceRoot, function ( ) local createSQL = executeSQLQuery ( 'CREATE TABLE IF NOT EXISTS `getBACK1` (playerSerial, Health)' ) if ( createSQL ) then outputDebugString ( 'Successfully Created Health SQL Table', 3, 0, 255, 0 ) else outputDebugString ( 'Failed to Create Health SQL Table', 1, 0, 255, 0 ) end end ) addEventHandler ( 'onPlayerQuit', root, function ( ) local checkData = executeSQLQuery ( 'SELECT * FROM `getBACK1` WHERE playerSerial = ? ', getPlayerSerial ( source ) ) local Health = getElementHealth (source ) local dataText = { 'UPDATE `getBACK1` SET Health = ? WHERE playerSerial = ?', Health, getPlayerSerial ( source ) }; if ( type ( checkData ) == 'table' and #checkData == 0 or not checkData ) then dataText = { 'INSERT INTO `getBACK1` (playerSerial, Health) VALUES(?, ?)', getPlayerSerial ( source ), Health }; end executeSQLQuery ( unpack ( dataText ) ); end ); addEventHandler( 'onPlayerJoin', root, function( ) local check = executeSQLQuery ( 'SELECT * FROM `getBACK1` WHERE playerSerial = ?', getPlayerSerial ( source ) ); if ( check and type ( check ) == 'table' and #check > 0 ) then setElementHealth ( source, check[1].Health ) end end );1 point
-
addEventHandler("onClientKey", root, function(k, state) if k == "tab" and params then cancelEvent() end end) Your code isn't working because you use "return", if you change it to cancelEvent() it will work. If function has "Cancel effect" on wiki, then you can use cancelEvent() https://puu.sh/yho2O/089bcce02b.png1 point
-
1 point
-
1 point
-
سلام عليكم ورحمة الله وبركاته كيف الحال ؟ عساكم بخير , اليوم قررت اسوي شروحات كيف تبرمج بوت ديسكورد , لأن ما شفت عربي يسوي شرح كيف تبرمج بوتات ديسورد فقط تركيب بوتات وتضبطها على اعداداتك , فاليوم حاب اعلن عن دورة كيف تبرمج بوتات الديسكورد بالتفصيل ان شاء الله أتمنى من الكل وضع اللأيك في المقطع عشان يوصل للغير .. وسلام خير الختام : )1 point
-
1 point
-
1 point
-
تنبيه: إذا قد تلقيت تحذيرين, فإن ثالثهما حظر, والمدة تعتمد تقديرياً على ما فعلت, فإن كررت الخطأ بعد فك الحظر, ستزيد المدة, إلى ان تصل المدة إلى دائمة1 point
-
0 points
-
هل : تقبل خبراء الانمي ذوي الانترنت البطئ في الرفع مما يجعلك تكره نفسك وتكره من حولك وتود ان تسافر الي اليابان حيث طوكيو ؟0 points
-
0 points
-
^ لن اتناقش مع امثالك اكثر , ولكن تقدر تروح تكلم المطورين وتضحكهم شوي والرابط خربان , وهذا اخر رد لي عشان مانخرب الموضوع اذا عندك حماقات اخري تعال خاص .0 points
