Jump to content

Captain07

Members
  • Content Count

    11
  • Joined

  • Last visited

Everything posted by Captain07

  1. Hello, I have a script that opens a panel when you click on a player/vehicle. The problem is that it detects the click on the player/vehicle even when something is in the way, the admin panel for example or the player/vehicle panel itself. So I am clicking in the admin panel, but if a player is "below" the panel and I click there, the player panel opens. How can I evade this?
  2. Yup, it's working, I stopped everything else. Now I have to find out what is messing around, I guess this is where the fun begins. Thanks everyone!
  3. It is in client side. I can disable other sounds, but not weapon sounds. My only guess is that there is another resource that enables them. But I have no idea which, I don't even remember doing anything like this before. Is there a way to find out which resource uses this function, without checking them one by one?
  4. function toggle() setWorldSoundEnabled(5, false) setWorldSoundEnabled(3, false) end addCommandHandler("toggle", toggle)
  5. The weapon sounds are in group 5, and I disabled the whole group. Still, the sounds don't disappear.
  6. Hello, I'm trying to disable default weapon sounds, but it's not working. I obtained the sounds with development mode + showsound and I turned them off, but ther are still there. Not even the example on mtawiki works, or other codes that I found. What's going on?! Thanks for reading!
  7. Hello, I need some help with removing the animation that occurs when you stop sprinting. Same happens when you jump while sprinting and when you land, your character steps forward. It looks really stupid and it's really annoying in a parkour game. (https://imgur.com/a/mr86k1C) Anyone has a solution, please? Thanks for reading!
  8. Oops... thanks! Now it's working like a charm!
  9. Thank you! I tested it and for some reason it's not working properly, did I mess something up? I wanted make it green when it's within the sector, otherwise red. -- 1st test if isMouseInCircleSector(sx/2, sy/2, 330, 0, 90) then dxDrawCircle(sx/2, sy/2, 330, 0, 90, tocolor(0, 255, 0, 255)) else dxDrawCircle(sx/2, sy/2, 330, 0, 90, tocolor(255, 0, 0, 255)) end -- 2nd test if isMouseInCircleSector(sx/2, sy/2, 330, 0, 180) then dxDrawCircle(sx/2, sy/2, 330, 0, 180, tocolor(0, 255, 0, 255)) else dxDrawCircle(sx/2, sy/2, 330, 0, 180, tocolor(255, 0, 0, 255)) end https
  10. Thanks, I'll check it out!
  11. Hello, I'm working with circles (dxDrawCircle) recently and I need a function to check if the player's cursor is within a circle's sector (a button). Is there a function to do this? I found the isMouseInCircle function, but it's not enough. Any ideas?
×
×
  • Create New...