Leaderboard
Popular Content
Showing content with the highest reputation on 21/12/19 in all areas
-
السلام عليكم ورحمة الله تعالى وبركته ( اللهم صلي وسلم على سيدنا محمد عليه الصلاة و السلام ) [AMONG US IN MTA:SA] ( اللعبة الاصلية ( شرح و طريقة لعب هي لعبة مسلية ومليئة بالحركية والإثارة. انظم إلى طاقم قايدة سفينة بينما يتحركون عبر الفضاء... واكتشف أن هناك دخيلا تسلل إلى السفينة بهدف التخلص من طاقمها وتدميرها Among Us! تجري كل الأحداث في لعبة متن سفينة فضاء تتكون من وحدات مختلفة. ابدأ لعبة جديدة -إما على الإنترنت أو ضد الحاسوب- وستحصل إما على دور عضو الطاقم أو دور الدخيل، والذي سيبقى غير مكشوف بالنسبة للاعبين الآخرين. إذا حصلت على دور الدخيل، فإن هدفك سيكون هو التخلص من كافة الطاقم من خلال التسلل إلى السفينة والضغط على زر القتل. أما إذا حصلت على دور عضو في الطاقم، فإنه سينبغي عليك تجنب الدخيل ومحاولة اكتشاف من يكون... قبل فوات الأوان! لهذا الغرض، فإن غرفة محادثة تجمع كل اللاعبين ستظهر بعد الأحداث، وهناك سيكون بإمكانهم مناقشة شكوكهم حول الدخيل بناء على ما عاينوه خلال اللعبة، لينظموا بعد ذلك تصويتا حول الأمر. يمكن للاعبين كذلك التفاعل مع بعض الأشياء التي توجد في غرف السفينة أثناء اللعب. وعلى العموم، فإن لعبة Among Us هي لعبة لاعبين متعددين مذهلة، سواء ألعبتها مع أصدقائك أو مع لاعبين من مختلف أنحاء العالم. اركب السفينة وعش الإحساس باكتشاف المتسلل في كل لعبة! source بعض صور داخل الخادم و هناك الكثير من الشياء الاضافية نظام التصويت - نظام العملة (COIN) - تستطيع انشاء خادم داخل خادم بشراء سيرفر و الطريقة تلقائية - (package) تسطيع فتح صناديق عشوائية نظام - الدخول بطريقة تلقائية حساب عشوائي و كلمة سطر عشوائية - تغير اسم الحساب يتطلب منك مبلغ مالي - يمكنك متابعة احدث الإظافات و الاخبار على الديسكورد - S4CCn6Q يشرفنا و جودك معنا و السلام عليكم و رحمة الله تعالى وبركته3 points
-
" كـ بادرة طيبة من مجتمع العرب قررنا ماهو اتٍ " احتضان المشاريع الناشئة والمشاريع المقامة من شأنها تحسين جودة الخدمة التي تقدمها سواء كانت ( موقع على الويب - سيرفر على اللعبه ) الخ : الشروط هي كالآتي يجب وضع شعار عند بداية تشغيل السيرفر يظهر لوقو مجتمع العرب أما عن المشاريع او السيرفرات داخل ألعاب اخرى يجب أن تضع نص او لوقو يدل على أن شبكة مجتمع العرب شريكة في المشروع MTA:SA إن كان مشروعك عبارة عن سيرفر داخل لعبة • نسبة من الأرباح تخصص لشبكة مجتمع العرب 30% او تقدر على حسب الارباح التي لديك • . عند وضع مسؤولين جدد في مشروعك يجب مناقشة الموضوع مع شبكة مجتمع العرب. بالتالي لا أحد يريد ان تصبح سمعة مشروعة سيئة بسبب اشخاص قليلين الخبرة او اشخاص لا يجيدون التعامل مع العملاء/الناس • ما الذي سأحصل عليه إذا تم قبول طلب الشراكة؟ سيتم توفير كافة الأشياء التي تحتاجها لبناء مشروعك بشكل كامل وناجح لمدة سنوات عديدة. مع كافة الدعم المستمر لمشروعك من توفير موقع خاص ودومين, الخ.. تواصل معي بالخاص في المنتدى / ان كنت تنوي ان نقوم باحتضان مشروعك2 points
-
تسلم اخوي ترى كنت مضغوط شوي لان ابرمج المودات لم اتفرغ بسوي جزء من الماب اصلا الأضاءة مخربة الماب2 points
-
If you're having issues with models or are looking for help on how to achieve certain results, feel free to ask in here. Note: Please check the Guide section before asking questions in here. Frequently Asked Questions on GTA modding the FAQ is on 3DS Max, though can be applied for various app's Lighting and Shading #1 Why can't I change the smoothing of my model? Your model contains duplicate vertices - this is a typical issue within GTA importers. They tend to break the vertices/split the edges on import, requiring to be welded. View the spoiler for a potential fix. #2 My map model is overexposed in day and night time. Your model lacks vertex color and illumination respectively. The GTA engine uses vertex color information to define lighting which is baked into the model. View spoiler for a potential fix. #3 Why is my Infernus model so bright? GTA engine calculates brightness of vehicles based on map objects collision brightness (that it's standing on) and the vehicle surface properties. View the spoiler for a potential fix. #4 My striped Bullet has different brightness for primary and secondary colors. GTA engine uses different lighting techniques for vehicles than map objects. Some of which are specular lighting, which in short brings a fake highlight onto the vehicle surface, illuminating it. View spoiler for a potential fix. Modeling #5 Certain polygons are not visible ingame, but looks fine on 3D editor. GTA engine among most other game engines uses backface culling, which kills the faces that are not facing/are blocked by ones facing the camera. This procedure is done to save memory. View the spoiler for a potential fix. #6 Can I make scissor doors for my vehicle without requiring scripts? It is possible to modify how vehicle doors appear in their open phase. It involves changing the rotations of dummies and their children objects, the doors. View the spoiler for a potential method. #7 How does vehicle reflections and chrome work? GTA vehicles uses 2 UV channels; first for diffuse, second for env and chrome mapping. If the secondary UV channel is not unwrapped properly, the env/chrome will either not work or flashes too often. View the spoiler for a potential method. #8 I can see through my vehicle chassis when looking at the police decals, why is that? Materials that are responsible for alpha needs to be last in the multimaterial list. If this is not done, textures like police decals will not render parts of the vehicle behind the alpha. View the spoiler for a potential fix. #9 How do I make a vehicle paintable? GTA SA requires models to have a certain colorcoded material applied to the surface of vehicles that needs to be paintable. It also needs (optionally if using textures) a texture that is not black. As anything that isn't black will be. If parts of the texture is grey, the color ingame will look sort of dirty or old. View the spoiler for a method. Miscellaneous #10 I have imported des_sherrifsgn1.dff into 3ds and extracted the textures into a folder, but they aren't displayed. It is not enough to extract the images, you'll have to tell the program where your textures are stored for it to apply them on the model. View the spoiler for a potential solution. #11 I want to remove Wuzimu's glasses and export it to my game. How do I do this? You're going to need a GTA formats importer. I prefer Kam's vanilla tools for skins due to its decent support for bones and skinned models. View the spoiler for a potential method. #12 What file types are worth to know about? GTA has many, many file types, and a lot of them are not natively available in MTA unless you modify your server's anti-cheat system to allow locally custom data files etcetera. So if we're going with MTA friendly files, there are a few. View the spoiler. #13 Where do I find shared vehicle textures, and what's each their use? You can locate the .txd for shared textures in GTA SA dir\models\generic\vehicle.txd. It stores textures which are used for SA vehicle lights, lighting and many more textures, which are used across hundreds of vehicles. As these textures are found in your local files, none of them are required to be added to custom vehicle .txd files, making for potentially very low file sizes. View the spoiler for a full list. #14 I have downscaled my model, but in-game it remains the same size as before. If your model's scale values says something like 76,144, 76,144, 76,144, it will reset to 100, 100, 100 on export. To correct this, go to Utilities panel, click Reset xForm, Reset selected, then right click the modifier and collapse to. Now your model will have its new scale applied. #15 I have converted a Counterstrike map and turned the main mesh into a collision which is 250kb. I am getting invisible walls, why is that? GTA has a very low polycount limit in regards to collision models. Not to be confused with collision primitive models, which are spheres or boxes, but the CM itself. If it is above or around 5000 (needs additional sources...) polygons, issues will occur, such as invisible walls or as if there's a large box blocking the entire model off. Another culprit for collision issues is the pivot point and position that the collision is exported at. You need to set the collisions to 0, 0, 0 and pivot point needs to resemble that of the main model, otherwise they will not line up properly. #16 My character movement is bugging on custom modeled stairs. GTA III, VC and SA do not have support for advanced staircase collisions, and so they require a different approach, which is a planar ramp or slope if you will. This may not look very good when the character steps on the stairs, however it is the most performance and bug-less method around. **Please feel free to contribute to the FAQ by leaving a comment here or through PM. It will be greatly appreciated.** little note for colors #B8E0B6 #4A4A4A1 point
-
It's been a long time since our last activity, but don't worry - the project is developing and you can follow the current progress on the Discord server. We have prepared for you a Christmas gift in the form of open beta testing, which starts on 23.12.2019 at 20:00 CET and will last, until 30.12.2019, hurry! We have added a total of 16 vehicles that you can buy in a car showroom. 3 of them must be unlocked before you can buy them, looking for hidden parts that are on the map: Our community suggested setting up quick vehicle repair points at gas stations. According to the requests, 22 such places were added. There are 50 achievements in the game, and their number regularly increases with updates. During open tests you will be able to unlock them and the rewards in the form of CR (premium currency) will be saved after the official start - so it's worth getting them! On the occasion of Christmas, we have also introduced a special event that will be active throughout the testing period and will bring the christmas mood. Snow and presents! Look for snowmens after Los Santos and collect them before others! They appear regularly every 30 minutes. You can get up to $1000, 1000 RP as well as up to 100 CR! And probably the most anticipated update, 0.2.0, which includes 1 of 3 tuning workshops. It is a paint shop where you can change the colors of vehicles to metallic and pearl, put unique paints, change the color of lights, windows and mount neon lights. Other workshops will be added in future updates. Duels with other players have been improved, the height and angle are now calculated correctly. There are many achievements associated with them. Pursuits have also been improved since previous tests. There are rewards in the form of $ and RP for completing the challenge that is visible during the pursuit. They are generated randomly, and the value of the prize depends on the score points. Open tests will take place from December 23, 2019 to December 30, 2019 from 20:00 CET. Discord Server: https://nfsv.net/discord1 point
-
function chePlayergr(player,x,y,z,baseName) if isElement(player) and getElementType(player) == "player" then cheTimer = setTimer(function(player,baseName) if not((getElementData(player,"Group") == getGroupNameFromBaseName(baseName)) or isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Admin"))) then setElementPosition(player,x,y,z+1) end end,2000, 1,player,baseName) end end EDIT: Não testei!1 point
-
1 point
-
حدث تعاريف كروت الشاشة الي عندك اما اذا ما عندك التعاريف اكتب اسم كرت الشاشة الي عندك بقوقل وحمله1 point
-
local sx, sy = guiGetScreenSize() local queue = {} local modQueue = {} local progress = 0 local downloadSize = 0 local modsSize = 0 local scriptVersion = 1.1 local canShowThe:OingGUI = false local window, language, guiColorR, guiColorG, guiColorB local gridClicked = 0 local gridCache = 1 local gridRows = 10 addEvent(resname .. ":startDownload", true) addEventHandler(resname .. ":startDownload", localPlayer, function(table, size, lang, colorR, colorG, colorB) queue = table language = lang guiColorR, guiColorG, guiColorB = colorR, colorG, colorB for index = 1, #queue do local data = queue[index] if fileExists(data[1]) then local cf = fileOpen(data[1]) local cfSize = fileGetSize(cf) if cfSize ~= data[3] then fileDelete(cf) else size = size - cfSize fileClose(cf) end end end modsSize = size if modsSize > 0 then window = "request" showCursor(true) downloadButton = guiCreateButton((535/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, "", false) guiSetAlpha(downloadButton, 0) cancelButton = guiCreateButton((708/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, "", false) guiSetAlpha(cancelButton, 0) addEventHandler("onClientGUIClick", root, function() if source == downloadButton then showCursor(false) destroyElement(downloadButton) destroyElement(cancelButton) window = nil download() elseif source == cancelButton then for index = 1, #queue do local data = queue[index] if not fileExists(data[1]) then queue[index] = nil end end showCursor(false) destroyElement(downloadButton) destroyElement(cancelButton) window = nil download() end end ) else download() end end ) function download() if #queue >= 1 then downloadFile(queue[#queue][1]) else queue = {} modsSize = 0 downloadSize = 0 progress = 0 canShowThe:OingGUI = true end end function calculateW(w, progress) if w and progress then local w = w-2 local width = ((w*progress)/100) return width end return false end local lastUpdate = 0 local lastName = "" function updateDownloadSize(size) if lastName == queue[#queue] then downloadSize = (downloadSize-lastUpdate) + size else downloadSize = downloadSize + size end lastName = queue[#queue] lastUpdate = size end function dx() if #queue ~= 0 then if window == "request" then dxDrawRectangle((520/1366)*sx, (267/768)*sy, (307/1366)*sx, (125/768)*sy, tocolor(0, 0, 0, 150), true) dxDrawRectangle((520/1366)*sx, (267/768)*sy, (307/1366)*sx, (23/768)*sy, tocolor(0, 0, 0, 150), true) dxDrawText("AFK Mod Downloader v" .. scriptVersion, (520/1366)*sx, (267/768)*sy, (827/1366)*sx, (290/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) dxDrawText(translations[language].request_firstText .. "\n" .. translations[language].request_secondText .. ": " .. sizeFormat(modsSize), (520/1366)*sx, (295/768)*sy, (827/1366)*sx, (338/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, true, true, false, false) if getKeyState("mouse1") and isCursorHover((535/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy) then dxDrawRectangle((535/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 50), true) dxDrawText(translations[language].request_downloadButton, (534/1366)*sx, (347/768)*sy, (643/1366)*sx, (380/768)*sy, tocolor(255, 255, 255, 150), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) elseif isCursorHover((535/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy) then dxDrawRectangle((535/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 100), true) dxDrawText(translations[language].request_downloadButton, (534/1366)*sx, (347/768)*sy, (643/1366)*sx, (380/768)*sy, tocolor(255, 255, 255, 200), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) else dxDrawRectangle((535/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 150), true) dxDrawText(translations[language].request_downloadButton, (534/1366)*sx, (347/768)*sy, (643/1366)*sx, (380/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end if getKeyState("mouse1") and isCursorHover((708/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy) then dxDrawRectangle((708/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 50), true) dxDrawText(translations[language].request_cancelButton, (707/1366)*sx, (347/768)*sy, (816/1366)*sx, (380/768)*sy, tocolor(255, 255, 255, 150), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) elseif isCursorHover((708/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy) then dxDrawRectangle((708/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 100), true) dxDrawText(translations[language].request_cancelButton, (707/1366)*sx, (347/768)*sy, (816/1366)*sx, (380/768)*sy, tocolor(255, 255, 255, 200), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) else dxDrawRectangle((708/1366)*sx, (348/768)*sy, (107/1366)*sx, (34/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 150), true) dxDrawText(translations[language].request_cancelButton, (707/1366)*sx, (347/768)*sy, (816/1366)*sx, (380/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end else if fileExists(queue[#queue][1]) then openedFile = fileOpen(queue[#queue][1]) if openedFile then local fileSize = fileGetSize(openedFile) fileClose(openedFile) updateDownloadSize(fileSize) end end dxDrawRectangle((413/1366)*sx, (599/768)*sy, (548/1366)*sx, (118/768)*sy, tocolor(0, 0, 0, 150), true) dxDrawRectangle((413/1366)*sx, (599/768)*sy, (548/1366)*sx, (23/768)*sy, tocolor(0, 0, 0, 150), true) dxDrawText("AFK Mod Downloader v" .. scriptVersion, (412/1366)*sx, (599/768)*sy, (961/1366)*sx, (622/768)*sy, tocolor(255, 255, 255, 254), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) dxDrawText(translations[language].firstText .. "\n" .. translations[language].secondText .. ": " .. queue[#queue][1]:gsub("files/", ""), (412/1366)*sx, (622/768)*sy, (961/1366)*sx, (666/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) local x, y, w, h = (421/1366)*sx, (673/768)*sy, (532/1366)*sx, (34/768)*sy progress = ((downloadSize*100)/modsSize) local width = calculateW(w, progress) dxDrawRectangle(x, y, w, h, tocolor(0, 0, 0, 200), true) dxDrawRectangle(x+1, y+1, w-2, h-2, tocolor(guiColorR, guiColorG, guiColorB, 50), true) dxDrawRectangle(x+1, y+1, width, h-2, tocolor(guiColorR, guiColorG, guiColorB, 150), true) dxDrawText(sizeFormat(downloadSize) .. "/" .. sizeFormat(modsSize) .. " (" .. math.floor(progress) .. "%)", x, y, w+x, h+y, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end end if window == "select" then dxDrawRectangle((431/1366)*sx, (164/768)*sy, (502/1366)*sx, (366/768)*sy, tocolor(0, 0, 0, 150), true) dxDrawRectangle((431/1366)*sx, (164/768)*sy, (502/1366)*sx, (23/768)*sy, tocolor(0, 0, 0, 150), true) dxDrawRectangle((573/1366)*sx, (196/768)*sy, (351/1366)*sx, (276.5/768)*sy, tocolor(0, 0, 0, 176), true) dxDrawText("AFK Mod Downloader v1.1", (430/1366)*sx, (162/768)*sy, (933/1366)*sx, (187/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) if isCursorHover((440/1366)*sx, (197/768)*sy, (112/1366)*sx, (36/768)*sy) then dxDrawRectangle((440/1366)*sx, (197/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 180), true) dxDrawText(translations[language].gui_activateSelected, (439/1366)*sx, (197/768)*sy, (552/1366)*sx, (233/768)*sy, tocolor(255, 255, 255, 150), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) else dxDrawRectangle((440/1366)*sx, (197/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 200), true) dxDrawText(translations[language].gui_activateSelected, (439/1366)*sx, (197/768)*sy, (552/1366)*sx, (233/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end if isCursorHover((440/1366)*sx, (243/768)*sy, (112/1366)*sx, (36/768)*sy) then dxDrawRectangle((440/1366)*sx, (243/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 180), true) dxDrawText(translations[language].gui_desactiveSelected, (439/1366)*sx, (243/768)*sy, (552/1366)*sx, (279/768)*sy, tocolor(255, 255, 255, 150), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) else dxDrawRectangle((440/1366)*sx, (243/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 200), true) dxDrawText(translations[language].gui_desactiveSelected, (439/1366)*sx, (243/768)*sy, (552/1366)*sx, (279/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end if isCursorHover((440/1366)*sx, (291/768)*sy, (112/1366)*sx, (36/768)*sy) then dxDrawRectangle((440/1366)*sx, (291/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 180), true) dxDrawText(translations[language].gui_activeAll, (439/1366)*sx, (291/768)*sy, (552/1366)*sx, (327/768)*sy, tocolor(255, 255, 255, 150), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) else dxDrawRectangle((440/1366)*sx, (291/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 200), true) dxDrawText(translations[language].gui_activeAll, (439/1366)*sx, (291/768)*sy, (552/1366)*sx, (327/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end if isCursorHover((440/1366)*sx, (337/768)*sy, (112/1366)*sx, (36/768)*sy) then dxDrawRectangle((440/1366)*sx, (337/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 180), true) dxDrawText(translations[language].gui_disAll, (439/1366)*sx, (337/768)*sy, (552/1366)*sx, (373/768)*sy, tocolor(255, 255, 255, 150), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) else dxDrawRectangle((440/1366)*sx, (337/768)*sy, (112/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 200), true) dxDrawText(translations[language].gui_disAll, (439/1366)*sx, (337/768)*sy, (552/1366)*sx, (373/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end if isCursorHover((594/1366)*sx, (483/768)*sy, (175/1366)*sx, (36/768)*sy) then dxDrawRectangle((594/1366)*sx, (483/768)*sy, (175/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 180), true) dxDrawText(translations[language].gui_close, (594/1366)*sx, (483/768)*sy, (769/1366)*sx, (519/768)*sy, tocolor(255, 255, 255, 150), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) else dxDrawRectangle((594/1366)*sx, (483/768)*sy, (175/1366)*sx, (36/768)*sy, tocolor(guiColorR, guiColorG, guiColorB, 200), true) dxDrawText(translations[language].gui_close, (594/1366)*sx, (483/768)*sy, (769/1366)*sx, (519/768)*sy, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "center", "center", false, false, true, false, false) end y = (197/768)*sy for index = gridCache, (gridCache+gridRows) do local mods = modQueue[index] if index <= #modQueue then x, y, w, h = (574/1366)*sx, y, (349/1366)*sx, (24/768)*sy if gridClicked == index then dxDrawRectangle(x, y, w, h, tocolor(guiColorR, guiColorG, guiColorB, 255), true) if isVehicle(tonumber(mods[2])) then dxDrawText(mods[3] .. " (" .. getVehicleNameFromModel(tonumber(mods[2])) .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) elseif isSkin(tonumber(mods[2])) then dxDrawText(mods[3] .. " (Skin " .. mods[2] .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) else dxDrawText(mods[3] .. " (Object " .. mods[2] .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) end elseif isCursorHover(x, y, w, h) and gridClicked ~= index then dxDrawRectangle(x, y, w, h, tocolor(guiColorR, guiColorG, guiColorB, 100), true) if isVehicle(tonumber(mods[2])) then dxDrawText(mods[3] .. " (" .. getVehicleNameFromModel(tonumber(mods[2])) .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 155), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) elseif isSkin(tonumber(mods[2])) then dxDrawText(mods[3] .. " (Skin " .. mods[2] .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 155), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) else dxDrawText(mods[3] .. " (Object " .. mods[2] .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 155), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) end if getKeyState("mouse1") then gridClicked = index end else dxDrawRectangle(x, y, w, h, tocolor(guiColorR, guiColorG, guiColorB, 50), true) if isVehicle(tonumber(mods[2])) then dxDrawText(mods[3] .. " (" .. getVehicleNameFromModel(tonumber(mods[2])) .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) elseif isSkin(tonumber(mods[2])) then dxDrawText(mods[3] .. " (Skin " .. mods[2] .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) else dxDrawText(mods[3] .. " (Object " .. mods[2] .. ")" .. " - " .. (mods[4] and tostring(translations[language].gui_enableState) or tostring(translations[language].gui_disableState)), x+(5/1366)*sx, y, w+x, h+y, tocolor(255, 255, 255, 255), (1/1366)*sx, "default-bold", "left", "center", false, false, true, false, false) end end y = y + (25/768)*sy end end end end addEventHandler("onClientFileDownloadComplete", root, function(file) if duplicates(queue[#queue][2], modQueue) then table.insert(modQueue, {queue[#queue][1], queue[#queue][2], queue[#queue][4], false}) end table.remove(queue, #queue) download() end ) addCommandHandler("mods", function() window = "select" gui_closeButton = guiCreateButton((594/1366)*sx, (483/768)*sy, (175/1366)*sx, (36/768)*sy, "Fechar", false) guiSetAlpha(gui_closeButton, 255) gui_activeSelected = guiCreateButton((440/1366)*sx, (197/768)*sy, (112/1366)*sx, (36/768)*sy, "Ativar o Selecionado", false) guiSetAlpha(gui_activeSelected, 255) gui_desactiveSelected = guiCreateButton((440/1366)*sx, (243/768)*sy, (112/1366)*sx, (36/768)*sy, "Desativar o Selecionado", false) guiSetAlpha(gui_desactiveSelected, 255) gui_activeAll = guiCreateButton((440/1366)*sx, (291/768)*sy, (112/1366)*sx, (36/768)*sy, "Ativar tudo", false) guiSetAlpha(gui_activeAll, 255) gui_desactiveAll = guiCreateButton((440/1366)*sx, (337/768)*sy, (112/1366)*sx, (36/768)*sy, "Desativar Tudo", false) guiSetAlpha(gui_desactiveAll, 255) showCursor(true) addEventHandler("onClientRender", root, dx) addEventHandler("onClientGUIClick", root, function() if source == gui_activeSelected then if gridClicked > 0 then if modQueue[gridClicked][4] == false then local filePath = modQueue[gridClicked][1]:gsub(".txd", ""):gsub(".dff", "") local model = modQueue[gridClicked][2] if fileExists(filePath .. ".txd") then modQueue[gridClicked][4] = true local txd = engineLoadTXD(filePath .. ".txd") engineImportTXD(txd, model) end if fileExists(filePath .. ".dff") then modQueue[gridClicked][4] = true local dff = engineLoadDFF(filePath .. ".dff") engineReplaceModel(dff, model) end end end elseif source == gui_desactiveSelected then if gridClicked > 0 then if modQueue[gridClicked][4] == true then local model = modQueue[gridClicked][2] modQueue[gridClicked][4] = false engineRestoreModel(model) end end elseif source == gui_activeAll then for _, data in ipairs(modQueue) do if data[4] == false then local filePath = data[1]:gsub(".txd", ""):gsub(".dff", "") local model = data[2] if fileExists(filePath .. ".txd") then data[4] = true local txd = engineLoadTXD(filePath .. ".txd") engineImportTXD(txd, model) end if fileExists(filePath .. ".dff") then data[4] = true local dff = engineLoadDFF(filePath .. ".dff") engineReplaceModel(dff, model) end end end elseif source == gui_desactiveAll then for _, data in ipairs(modQueue) do if data[4] == true then data[4] = false engineRestoreModel(data[2]) end end elseif source == gui_closeButton then destroyElement(gui_closeButton) destroyElement(gui_activeSelected) destroyElement(gui_desactiveSelected) destroyElement(gui_activeAll) destroyElement(gui_desactiveAll) window = nil gridClicked = 0 gridCache = 1 showCursor(false) end end ) end ) bindKey( "mouse_wheel_up", "down", function () if #modQueue >= gridRows + 1 then gridCache = math.max(gridCache - 1, 1) end end ) bindKey( "mouse_wheel_down", "down", function () if #modQueue >= gridRows + 1 then gridCache = math.min(gridCache + 1, #modQueue-gridRows) end end )1 point
-
1 point
-
(Mobile) dxDrawText(v, startRectangleX, posY-startRectangleY+i*57, sizeX, sizeY,tocolor(255,255,255,255),1,"default-bold","right","top") > This is not scaled. Take a closer look at how you did that with the rectangle. dxDrawText(v, startRectangleX, posY-startRectangleY+i*57, sizeX, sizeY,tocolor(255,255,255,255),1,"default-bold","right","top") > dxDrawText doesn't make use of sizes. But end points. (startpoint + size = endpoint) Overall, > mirror what you did with the rectangle. > use endpoints instead of the size. > center the text vertically. Between the 2 startpoints and the 2 endpoints.1 point
-
1 point
-
Tente isso: function verificarACL () local resourceName = getResourceName (resource) -- resource é uma variável predefinida pelo MTA, ela é = getThisResource() if not isObjectInACLGroup ("resource."..resourceName, aclGetGroup("Admin")) then outputDebugString (resourceName..": Adicione este resource na ACL Group 'Admin'") cancelEvent () end end addEventHandler ("onResourceStart", resourceRoot, verificarACL) -- Ativa essa função quando este resource for iniciado. -- resourceRoot também é predefinida pelo MTA, ela é = getResourceRootElement(getThisResource()) Predefined_variables_list Obs: É necessário estar com /debugscript 3 ativado para ver a mensagem.1 point
-
Então no caso ficaria assim mas ainda continua do mesmo jeito function verificarACL(playerSource) local thisResource = getThisResource() local resourceName = getResourceName(thisResource) if not isObjectInACLGroup ( "resource." ..resourceName, aclGetGroup("Admin")) then outputChatBox ("Adicione o script na admin", playerSource, 255, 255, 255, true) stopResource(thisResource) end end1 point
-
1 point
-
السكوت خيراً من كلامكم افراغ إقرأ المزيد على دلوخ.كوم: https://mawdoo3.com/كيف-تصبح-رجال-باربع-خطوات-فقط-حصريا1 point
-
عمل ممتاز , اتشرف بدعمكم من ناحية الخوادم وكل شي ويكون لكم كامل التحكم لمدة سنتين قدام , تواصل معي على الخاص لتفاصيل اكثر1 point
-
Don't use "onPlayerJoin", for downloading. Client checks for files. client > server Tells the server which files there are already. The server compares the files. The server downloads the files from the external server. (Caching files for a 1 minute?) server > client The server sends the files back. Client loads the mods either from already downloaded files or directly from the RAW data. Best to load the mods that are already downloaded at this moment. As you might want to update mods in the future. There is no onPlayerJoin in that cycle.1 point
-
1 point
-
"There are 284 servers ahead of my server..." WOW Whoever invented this, it must have been the greatest marketing idea ever. I guess my server has to wait a few decades.1 point
-
1 point
-
1 point
-
1 point
-
لايتفلسف عليك الاهبل ذا كل اللي عليك تسويه تمسح تعريف كرت الشاشه وترجع تحمله , لان غالبا تحديثات كرت الشاشه تخرب ماتصلح , لذلك امسح ثم حمل0 points
-
I made a 3D GUI System in MTA:SA. You can place 3D GUI Elements (Buttons, Textboxes, Labels, Lists, Checkboxes, Sliders, etc.) wherever you want. It's not public yet.0 points