Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 29/07/22 in all areas

  1. 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
  2. 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 ) return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) ) end ------------ color = tocolor(0, 0, 0, 180) --Here is the color of the button I made ------------ dxDrawRectangle(sx*.40, sy*.47, sx*.06, sy*.05, color1 or color, false) --gombl ------------ if isMouseInPosition(sx*.40, sy*.47, sx*.06, sy*.05) then color1 = tocolor(88, 0, 0, 50) --And here you put any color when the mouse touches the button, a color appears else color1 = color end try this
    1 point
  3. 1 point
  4. Thank you for the response. I'll be trying my best to make the anti-cheat without using cheats myself.
    1 point
  5. Thanks, but is there anything else you can help me with?
    1 point
  6. E aí @ABR, para fazer isso, você pode utilizar o loop for em uma tabela armazenando as acls que serão permitidas de executar o comando, exemplo: local allowedAcls = {'PCC', 'CV', 'NH'} function isPlayerInTableAclGroup(player, groupsTable) local playerAccountName = getAccountName(getPlayerAccount(player)) for k = 1, #groupsTable do local indexedGroup = groupsTable[k] if isObjectInACLGroup('user.' .. playerAccountName, aclGetGroup(indexedGroup)) then return true end end return false end addCommandHandler('dominar', function(player) local acc = getPlayerAccount ( player ) if acc and not isGuestAccount ( acc ) then local accName = getAccountName (acc) if isPlayerInTableAclGroup(player, allowedAcls) then triggerClientEvent (player, 'MST.sendPlayerNotification', player, 'Você dominou o local com sucesso', 'success') triggerClientEvent (player, 'MST.sendPlayerNotification', root, '(Aqui seria a fac que estpa dominando) está dominando o Jacarézinho', 'warning') end end end) OBS: Atente-se a indentação do seu código, para facilitar a leitura do código, você pode ver como indentar seu código clicando aqui.
    1 point
  7. Hi, welcome to the forums! I've moved your thread to the Portuguese scripting section so you can get better assistance in your native language. Please make sure to always use English when posting outside this section!
    1 point
  8. Update 1.3.0 coming soon! Update 1.3.0 is set to release on Friday, August 26 2022. The upcoming update is focused on a major code rework that should help us move along with further updates as well as iron out a good amount of bugs. In addition to that since we've rewritten the oldest part of the code which is the account system itself we've also decided to completely overhaul the UI connected to it, here's a little sneak peak of it in action: Please do note that this UI is still WIP and more changes may follow until the release itself. For more information, feel free to look into our update announcement forum post or simply join our Discord. Cheers.
    1 point
×
×
  • Create New...