Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 29/08/17 in all areas

  1. Maybe you can base it on the current gear: https://wiki.multitheftauto.com/wiki/GetVehicleCurrentGear To be honest it will be a lot of work, I personally do not recommend it unless it is a very important detail.
    2 points
  2. 2 points
  3. no thing is possible for Master_MTA small usfel function u can use it with dx edit box like i was want with small example --------------------------useful function function getClipboard() if (getKeyState('rctrl')==true or getKeyState('lctrl')==true) and getKeyState('v')==true then local edit= guiCreateEdit ( 0,0,0,0, '',false,nil ) guiSetAlpha(edit,0) guiEditSetCaretIndex ( edit, 0 ) local text=guiGetText(edit) destroyElement(edit) return text end return false end -------------------------------------------- GUIEditor = { edit = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(542, 304, 403, 102, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(62, 39, 279, 24, "", false, GUIEditor.window[1]) end ) addEventHandler('onClientKey',root,function(btn,st) if st then guiSetText(GUIEditor.edit[1],getClipboard() or '') end end)
    2 points
  4. that i was said any way that will help us when we want to set Dx edit box text
    1 point
  5. He's just a drunk confused boy, ignore.
    1 point
  6. Very good explanation by @pa3ck here, congrats!Dropped you a like, i was about to explain the same, but then i saw ur comments
    1 point
  7. It isn't the same as what getClipboard would do, because ctrl + v is required. But it is definitely useful.
    1 point
  8. السلام عليكم ورحمة الله وبركاته كما عودتكم اشياء حصريه 100% اليوم جايبلكم يوزفل فنكشن mta sa منعته لاسباب امنيه الزبده الفنكشن يجيبلك النص المنسوخ لما اللاعب يضغط ctrl+v الفنكشن كلن سايد فقطط ((وش بيفيدك هذا الفنكشن مخصص لي(رعاة الدي اكس (المحترفين المهم السورس كود function getClipboard() if (getKeyState('rctrl')==true or getKeyState('lctrl')==true) and getKeyState('v')==true then local edit= guiCreateEdit ( 0,0,0,0, '',false,nil ) guiSetAlpha(edit,0) guiEditSetCaretIndex ( edit, 0 ) local text=guiGetText(edit) destroyElement(edit) return text end return false end نجي للساينتكس getClipboard() مافي اي ارقمنتات نخش على الامثلة GUIEditor = { edit = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(542, 304, 403, 102, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.edit[1] = guiCreateEdit(62, 39, 279, 24, "", false, GUIEditor.window[1]) end ) addEventHandler('onClientKey',root,function(btn,st) if st then guiSetText(GUIEditor.edit[1],getClipboard() or '') end) اتمنى يكون عجبكم لا تنسون اللايك ها +_+
    1 point
  9. ههههههههه احلى حاجه انك بتعزز وخلاص كفوك مشكور يا عسل على المرور
    1 point
  10. حبيب قلبي تسلملي امين يا رب وياك تسلملي يا غالي مشكور على المرور
    1 point
  11. × --Server "onPlayerCommand" executeSQLQuery -- اذا تبي تحفظها بالقاعدة او لا براحتك ! getPlayerName -- تاخذ الاسم وتشيله مع الترايقر triggerClientEvent -- Client guiGridListAddRow guiGridListSetItemText
    1 point
  12. executeSQLQuery getPlayerSerial getElementData setElementData guiSetVisible
    1 point
  13. جميل جداً ! وبتوفيق ي ماستر
    1 point
  14. والوظيفة هذي ماتدعم الاعبين setElementVelocity ماراح يشتغل لان اليوزفل معتمد على وظيفة تقدر تسوي ترايقر للكلينت وبعدين تحط سرعة للاعب عن طريق setGameSpeed
    1 point
  15. You can ask it like this: "Can you please make an example that shows all the cars their maximum velocity?" But I am afraid this section isn't for English lessons my friend...
    1 point
  16. function UP ( ) local CreateTop = dbQuery( DB,"SELECT * FROM SQLTable" ) local result = dbPoll( CreateTop, -1 ) for i , data in ipairs ( result ) do triggerClientEvent (source,"updateTheTickets",source, data.NAME , data.SERIAL , data.NUM ) end end addEvent("UP",true) addEventHandler("UP",getRootElement(),UP)
    1 point
  17. https://wiki.multitheftauto.com/wiki/OnVehicleDamage والقسم الخطا
    1 point
  18. Your server looks pretty good, at least visually. There are missing translations that I can't understand, obviously. There's something -extremely- annoying: the Q key. I'm using an AZERTY keyboard, and unfortunately, i'm using the key Q to move to the left. Please make it changeable ASAP, as I'd like to enjoy it.
    1 point
  19. What would that dialog say? "Would you like to run this plugin? It may destroy your computer? [Yes] [No]" There's no easy way to judge whether code is 'good' or 'bad'. On Android, code runs in a fairly protected sandbox (unless you root your phone) so it can't do anything too nefarious. A native plugin on Windows could do pretty much anything - from deleting all your files, to exploiting the OS to install a rootkit - and there's no way to really detect this ahead of time.
    1 point
  20. Added new video. Sorry for lags, bcs I'm using Intel HD Graphic Card.
    1 point
  21. السلام عليكم و رحمة الله و بركاته اقدم اليوم اليكم شرح للداتا Shared function الداتا سيرفر و كلاينت وتنفع في الاتنين بدون مشاكل اولا الداتا هي من اهم الاشياء الي انا استخدمها في معظم موداتي ثانيا الداتا يوم تخرج من السيرفر تروح اهم فنكشنين والي راح نشتغل عليهم هم فنكشن يحط داتا و فنكشن يشيل الداتا اولا فنشكن setElementData يحط داتا معينة علي شي الشي ممكن يكون ( ماركر , سيارة , لاعب الخ.. ) طيب الجملة التركيبية للفنشكن bool setElementData ( element theElement, string key, var value [, bool synchronize = true ] ) طبعا انت لو مبتدا ماراح تفهم شي من هذي فمعليك بفهمك setElementData ( marker, "aMissionStatus", false ) هنا سويت ماركر باسم marker وحطيت داتا عليه اسمها aMissionStatus وحطيطها فولس طبعا لو ابي اسوي مهمة و ابي الماركر يفتح و يقفل بالداتا طيب الحين حطينا داتا علي ماركر نبي اذا اللاعب دخل الماركر و الماركر عليه داتا ينقلة عالم مكان اخر الفنكشنات "onMarkerHit" if getElementData then setElementPosition else outputChatBox -- المهمة مغلقة طبعا if then else مب فنكشنات واول سطر ذا حدث عند دخول الماركر طيب يلا نكون الكود local marker = createMarker(2000, 2000, 30, 'cylinder', 1, 255, 0, 0, 255) -- نسوي ماركر من العلم ان الاحداثيات خرابيط addEventHandler( "onMarkerHit", marker,function(p) if getElementData(marker,"aMissionStatus",true) لازم اسم الداتا بين علامتا التنصيص then setElementPosition(p,543,45,5) else outputChatBox("[Mission System] مغلقة") end -- اند الفنكشن end -- اند الشرط ) اتمني تكونو ا فهمتوا الشرح و اسف لو في خطا في اخر كود مسويه ع السريع ضغط زر لايك علي الشرح شرف كبير لي الشرح اهداء لكل الي يشوف الموضوع ولو شرحي حلو ياريت تقولولي عشان اكمل (:
    1 point
  22. xAddToGroupFunction_ = function ( Group,Price,Name ) local account = getAccountName(getPlayerAccount(source)); if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("انت لم تسجل بالسيرفر",source,238,158,73,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("لا يمكنك اختيار الرتبه لانه فعلا معك",source,238,158,73,true); end if isObjectInACLGroup("user."..account, aclGetGroup("Admin-EX")) then return outputChatBox("انت مخآلف لايمكنك الحصول على رتبه",source,238,158,73,true); end local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then for _,rn in ipairs(Ranks) do if ( aclGetGroup(rn[1]) ) then if ( isObjectInACLGroup("user."..account.."",aclGetGroup(rn[1])) ) then if ( rn[1] ~= "Console" and rn[1] ~= "Managers" and rn[1] ~= "Maps" ) then aclGroupRemoveObject(aclGetGroup(rn[1]),"user."..account) end end end end aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("مبروك لقد حصلت على الرتبه "..Name,source,238,158,73,true); else outputChatBox("-_____-",source,238,158,73,true); endendaddEvent("Accept:the:request",true)addEventHandler("Accept:the:request",root,xAddToGroupFunction_) السلام عليكم ورحمة الله وبركاته ابغى احول الكود ذا من داتا ساعات الى داتا لفل
    0 points
  23. تبوني اسويلكم مودات حياه واقعيه كامله وانشرها وبعد ما بتحتاج mysql بسويها sqlite عشان لا احد يعور راسكم فيها مسروقه مسروقه ذذ
    0 points
  24. الفاكشن ,, ي شيخ شكل للحين محد فاهم علي
    0 points
×
×
  • Create New...