Leaderboard
Popular Content
Showing content with the highest reputation on 07/06/17 in Posts
-
Thisdp's DirectX Graphical User Interface System ( MTASA 2D+3D DxLIB ) This dxlib provide dx gui functions and events to make it easier to use and alternative to change the style more flexibly. Features: 1. Update Check(DGS will notice you if there is a higher version, and you can choose to ignore it or disable it in the config file) Update Command: "updatedgs" 2. Dx GUI Types: Basic: Window Edit Box Button Grid List Image Scroll Bar Scroll Pane Text Label Tab Panel Detect Area Radio Button Combo Box Check Box Memo 3D Interface 3D Text Browser Switch Button Selector Plugin: Media Browser Color Picker Mask Remote Image QRCode Blur Box Rounded Rectangle Nine Slice Scaling Object Preview Support Canvas Scroll Pane's 3D Effect 3. Edit/Memo rewrite ( You can no longer find the problems in dgs, the problems which exist in cegui) 4. Detect Area is efficient when checking whether your cursor is in a complicated shape. 5. Debug Mode , Command: "debugdgs" 6. You can apply shader to the dxgui ( Compatible with some resources like Objec tPreview ). 7. Include CMD, Command: "dgscmd" ( For more help, please input "help" in the CMD ) 8. Memo/Edit rewritten. 9. Object Oriented Programming Class. 10. Render Target Failure Check ( Warns when there's no enough video memory to create render target ). 11. DGS resembles cegui, you can find the similar feeling when scripting with dgs. 12. 48-hour-response service, your suggestions and bug report will be dealt with in 48 hours ( or less, like 12 hours ? ) 13. Custom Style system 14. Built-in shader plugin 15. More properties 16. Built in multi-language support 17. Simple GUI To DGS (G2D) Notice:Do not close your server or stop the script when it is updating. Wiki: https://wiki.multitheftauto.com/wiki/Dgs ( Still Working In Process ) Auto Completion For N++ (Thanks To Ahmed Ly): http://www.mediafire.com/file/m6dm7815d5dihax/Lua.zip Discord Server: https://discord.gg/QEs8q6W Download DGS : https://github.com/thisdp/dgs Notice: Need acl rights to call fetchRemote/getPlayerIP. If you want to sell your script which involves DGS, please exclude DGS from your price. HurtWorld Backpack Panel(Example) DGS Network Monitor(Built-in)1 point
-
1 point
-
I was reading your post and I was like what did I just read ... why did you say that?1 point
-
Zip up mods/deathmatch/dumps and upload to https://upload.mtasa.com/ and give link here1 point
-
1 point
-
object = createObject(980, 2539.5, 1343.2998046875, 12.60000038147) marker = createMarker(2539.5, 1343.2998046875, 12.60000038147, "cylinder", 2, 100, 0, 0, 100) function gateopen(player) local data = getElementData(Player,"job") if (data=="Admin") then moveObject(object, 500, 980, 2539.5, 1343.2998046875, 15.60000038147) else outputChatBox("Message") end end addEventHandler("onMarkerHit",object,gateopen) function gateclose(player) moveObject(object, 2539.5, 1343.2998046875, 12.60000038147) end addEventHandler("onMarkerLeave",object,gateclose)1 point
-
object = createObject(980, 2539.5, 1343.2998046875, 12.60000038147) marker = createMarker(2539.5, 1343.2998046875, 12.60000038147, "cylinder", 2, 100, 0, 0, 100) function gateopen(player) local data = getElementData(Player,"job") if (data=="Admin") then moveObject(object, 500, 980, 2539.5, 1343.2998046875, 15.60000038147) else outputChatBox("Message") end end addEventHandler("onMarkerHit",getRootElement(),gateopen) function gateclose(player) moveObject(object, 2539.5, 1343.2998046875, 12.60000038147) end addEventHandler("onMarkerLeave",getRootElement(),gateclose)1 point
-
1 point
-
1 point
-
damn @pa3ck you beat me to it Just had to erase 20 lines of writing because you said them :v1 point
-
They are functions / code snippets developed by individuals like you, me or any other developer that think their code would help others. For example there's a function called IsMouseInPosition which is not implemented in MTA, you have to code it yourself, but somebody else already did and put it up there. If I was to use it, all I had to do is copy the whole function, paste it in your script and use it as you would use any other functions like: -- My code addEventHandler("onClientResourceStart", resourceRoot, function() if isMouseInPosition ( some X, some Y, some Width, some Height) then -- code end end) -- Useful functions function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end1 point
-
1 point
-
yes. you should script with your hands. It is a large work for me to make a dgs editor. I add a function that when you got too much tabs which can't be shown, you can scroll tabs like scroll bar by mouse wheel. And I added dgsDxTabPanelMoveTab which can change the order of tabs.1 point
-
function (player,amount) amount is guiGetText ( edit1 ) ??? test it ... -- server function takemymoney ( amount ) if getPlayerMoney ( client ) >= 30000 then takePlayerMoney ( client, 30000 ) then end end addEvent ( "takeMoney", true ) addEventHandler ( "takeMoney", root, takemymoney ) -- client window = guiCreateWindow(0.39, 0.36, 0.22, 0.38, "SADZ Cinema HD", true) guiWindowSetSizable(window, false) guiSetAlpha(window, 0.67) guiSetVisible( window , false) checkbox = guiCreateCheckBox(391, 141, 0, 48, "", false, false, window) label1 = guiCreateLabel(0.19, 0.17, 0.63, 0.11, "pay", true, window) guiSetFont(label1, "default-bold-small") guiLabelSetHorizontalAlign(label1, "left", true) label2 = guiCreateLabel(0.38, 0.17, 0.62, 0.11, "50,000$", true, window) guiSetFont(label2, "default-bold-small") guiLabelSetColor(label2, 14, 67, 0) edit1 = guiCreateEdit(48, 92, 222, 26, "", false, window) button1 = guiCreateButton(0.32, 0.54, 0.47, 0.09, "PAY", true, window) guiSetFont(button1, "default-bold-small") function onClick () if source == button1 then triggerServerEvent ( "takeMoney", localPlayer, guiGetText ( edit1 ) ) end end addEventHandler ( "onClientGUIClick", root, onClick )1 point
-
1 point
-
Master_MTA - له مسبقل باهر ان شاء الله Killer Project - شخص يحب يكتشف كل جديد و يطور من نفسه و بإذن الله نشوفه من كبار المبرمجين1 point
-
Thanks .. that Work <3 addEventHandler("onResourceStart",resourceRoot,chat) ^^ We do not deserve it ^^without it work ( i add it just for testing :)) )1 point
-
1 point
-
addEventHandler ( 'onClientGUIClick' , GUIEditor.button[3] , function ( ) local Text = guiGetText ( GUIEditor.edit [ 1 ] ) if ( Text ~= '' ) then local Render = function ( ) dxDrawRectangle ( 0 , 551 , 800 , 39 , tocolor ( 0 , 0 , 0 , 159 ) , false ) dxDrawText ( Text , 0 , 551 , 800 , 586 , tocolor ( 255 , 255 , 255 , 255 ) , 2.20, 'sans' , 'center' , 'center' , false , false , false , false , false ) end return ( playSoundFrontEnd ( 30 ) and addEventHandler ( 'onClientRender' , root , Render ) and setTimer ( function ( ) removeEventHandler ('onClientRender' , root , Render ) end , 5000 , 1 ) ) end end , false )1 point
-
Teams = { 'Team1' , 'Team2' , 'Team3' , 'Team4' } for _ , v in ipairs ( Teams ) do setTeamFriendlyFire ( createTeam ( v , 255 , 255 , 255 ) , false ) end1 point
-
@Default يب يب يعطيك العافية fetchRemote("http://a.top4top.net/p_52221hhc1.jpg", function ( response ) if response ~= "ERROR" then triggerClientEvent("onClientGotImage", root, response ) end end )1 point
-
local value = "1000"; iprint ( convertNumber(value) ); لاتنسى السورس كود1 point
-
1 point
-
if the data should be shared with all players, then yes. Else you should go for the trigger[side]Event and for the less priority data the latent version.1 point
-
1 point
-
جميل جداً صراحة عجبني الانترو ، فكرة جميلة ما شاء الله عليك تحياتي1 point
-
لا مب رخيصة ولا شي مب افضل من تابليتو طبعا @TAPL واي مشكلة في تابليتو كلم تابل سكايب يحلها لك في دقيقة لاكن ذي دعم مب عربي و كذا وكمان تابليتو ممكن تركب لك اوبن جيم بانل و كل شي1 point
-
@#STZ @Mr.OppS ليش كل ذا قلت 4 اسطر يعني 4 اسطر setTeamFriendlyFire(createTeam("Team1", 255,0,0), true) -- 255,0,0 = color setTeamFriendlyFire(createTeam("Team2", 255, 0, 0), true) setTeamFriendlyFire(createTeam("Team3", 255, 0, 0), true) setTeamFriendlyFire(createTeam("Team4", 255, 0, 0), true)1 point
-
1 point
-
I did this at Owl. The way I went about doing it is building off of the customblips resource here: https://community.multitheftauto.com/?p= ... ils&id=960 I made a modified copy to allow other things in this UI, like text, color, and alpha changes. You can do the same with what people said above and just editting that script.1 point
