Jump to content

Hydra

Members
  • Posts

    372
  • Joined

  • Last visited

  • Days Won

    11

Hydra last won the day on November 11 2023

Hydra had the most liked content!

5 Followers

About Hydra

  • Birthday 13/06/2003

Details

  • Gang
    -
  • Location
    Romania
  • Occupation
    Scripter
  • Interests
    -

Recent Profile Visitors

4,885 profile views

Hydra's Achievements

Street Cat

Street Cat (24/54)

105

Reputation

  1. 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 Try this one
  2. Happy holidays to all the players! And good luck with this project going forward
  3. 1. We create an application in https://discord.com/developers/applications 2. We copy the application id: 3. Now we are making the script (start with creating a .lua file) --// discord_c.lua local app_id = "your_app_key_here" function ConnectRPC() setDiscordApplicationID(app_id) if isDiscordRichPresenceConnected() then local name = getPlayerName(localPlayer) iprint("RPC: Discord RPC is now connected") setDiscordRichPresenceAsset("your_app_logo_string", "Yey, this is my app logo") setDiscordRichPresenceButton(1, "Join Discord", "url_here") setDiscordRichPresenceButton(2, "Connect Server", "url_here") --// NOTE: you can show only 2 buttons setDiscordRichPresenceState("Playing") setDiscordRichPresenceDetails("Playing as: "..name) else iprint("RPC: Discord RPC failed to connect") end end addEventHandler("onClientResourceStart", resourceRoot, ConnectRPC) --// Now, we reset the rpc details so the status will not be bugged addEventHandler("onClientResourceStop", resourceRoot, function() resetDiscordRichPresenceData() end) 4. So, we have our discord_c.lua file and now we need to create the meta.xml <meta> <info author="YourName" description="YourResourceDescription" type="YourScriptType", version="1.0" /> <script src="discord_c.lua" type="client" cache="false" /> </meta> 5. In the console you can now type refresh and after start theResourceName
  4. local app_id = "my_app_id" addEventHandler("onClientResourceStart", resourceRoot, function() local name = getPlayerName(localPlayer) setDiscordApplicationID(app_id) if isDiscordRichPresenceConnected() then setDiscordRichPresenceAsset("your_app_logo_name", "This is my logo!") setDiscordRichPresenceSmallAsset("your_second_app_logo_name", "This is my second logo!") setDiscordRichPresenceState("In-game") setDiscordRichPresenceDetails("currently as "..name) end end) addEventHandler("onClientResourceStop", resourceRoot, function() resetDiscordRichPresenceData() end)
  5. Hello, I am selling my chatbox resource from a project I was working on Preview: Description: Supports client/server side commands Outputs default messages (player muted, player banned, etc..) Press T to talk with all players Press Y to talk with your team Smooth fade in when a message is typed Supports admin tags Contact & Info: Price: 15-20 euro, only paypal Contact: Gabriel45#6859 (Dirscord)
  6. Hydra

    help script

    Could you leave some more explicit informations to understand your problem? All I understood is that you can't find the vehicle_save resource. You can download it from here: https://community.multitheftauto.com/index.php?p=resources&s=details&id=10877
  7. Hydra

    Need help

    Have you granted yourself admin access at least? To use commands like /start, /restart, /stop etc.. you must be an adminr or use the console for starting the resources. Also, if your resource contains commands that are used by the admins like the ones above, you will have to add <object name="resource.Derby"></object> in Admin ACL group
  8. You can use something more simplier --// Example local borderSize = 1 dxDrawBorderedText(borderSize, etc..) function dxDrawBorderedText (outline, text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY) for oX = (outline * -1), outline do for oY = (outline * -1), outline do dxDrawText (text, left + oX, top + oY, right + oX, bottom + oY, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY) end end dxDrawText (text, left, top, right, bottom, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, colorCoded, subPixelPositioning, fRotation, fRotationCenterX, fRotationCenterY) end
  9. Show your code, so people can help you. Only with an explanation, we have no way of knowing where the exact problem is. Also HTML colors must contain 6 characters like #FFBB00
  10. https://streamable.com/wj20up
  11. Hydra

    Project:V - RPG

    Project:V Project:V este un server bazat pe modul de joc din GTA:V Online. Încercăm să aducem fiecare caracteristică din GTA V pe acest server pentru a crea ceva unic și de lungă durată. Serverul este încă în lucru, dar s-au făcut destul de multe progrese, nu voi posta fiecare actualizare aici și vă voi lăsa să mergeți la serverul nostru de discord pentru a vedea cum arată serverul în acest moment Screens: https://streamable.com/ghma0r https://streamable.com/vdffx6 https://youtu.be/eRnhSLEADxI Discord Server: https://discord.gg/XcPJeahDQE
  12. You can't use .ASI scripts on MTA, what's so hard to understand?
  13. You could use this resource to add more models for your server https://github.com/Fernando-A-Rocha/mta-add-models Make sure you read the guide and follow the steps
  14. You are not doing it correctly, it should be: function GripTyre() engineSetSurfaceProperties(9, "tyregrip", 255) engineSetSurfaceProperties(10, "tyregrip", 255) engineSetSurfaceProperties(11, "tyregrip", 255) engineSetSurfaceProperties(12, "tyregrip", 255) engineSetSurfaceProperties(13, "tyregrip", 255) engineSetSurfaceProperties(14, "tyregrip", 255) engineSetSurfaceProperties(15, "tyregrip", 255) engineSetSurfaceProperties(16, "tyregrip", 255) engineSetSurfaceProperties(17, "tyregrip", 255) engineSetSurfaceProperties(20, "tyregrip", 255) engineSetSurfaceProperties(80, "tyregrip", 255) engineSetSurfaceProperties(81, "tyregrip", 255) engineSetSurfaceProperties(82, "tyregrip", 255) engineSetSurfaceProperties(115, "tyregrip", 255) engineSetSurfaceProperties(116, "tyregrip", 255) engineSetSurfaceProperties(117, "tyregrip", 255) engineSetSurfaceProperties(118, "tyregrip", 255) engineSetSurfaceProperties(119, "tyregrip", 255) engineSetSurfaceProperties(120, "tyregrip", 255) engineSetSurfaceProperties(121, "tyregrip", 255) engineSetSurfaceProperties(122, "tyregrip", 255) engineSetSurfaceProperties(125, "tyregrip", 255) engineSetSurfaceProperties(146, "tyregrip", 255) engineSetSurfaceProperties(147, "tyregrip", 255) engineSetSurfaceProperties(148, "tyregrip", 255) engineSetSurfaceProperties(149, "tyregrip", 255) engineSetSurfaceProperties(150, "tyregrip", 255) engineSetSurfaceProperties(151, "tyregrip", 255) engineSetSurfaceProperties(152, "tyregrip", 255) engineSetSurfaceProperties(153, "tyregrip", 255) engineSetSurfaceProperties(160, "tyregrip", 255) iprint("Tyre grip started") end addCommandHandler( "grip", GripTyre)
×
×
  • Create New...