Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Suggestion] Add a new export to disable voice chat while person is dead #78

Closed
Krizmatic opened this issue May 16, 2021 · 6 comments
Closed

Comments

@Krizmatic
Copy link

Not able to disable the push to talk control/key while a person is dead. I also couldn't find any export to block the voice chat while a person is dead. It'll will helpful if you can add it in next update.

@Krizmatic Krizmatic changed the title Add a new export to disable voice chat while person is dead [Suggestion] Add a new export to disable voice chat while person is dead May 16, 2021
@AvarianKnight
Copy link
Owner

AvarianKnight commented May 17, 2021

You can do that yourself in whatever script handles dying, just disable their PTT key when they die

CreateThread(function()
   while isDead do
     DisableControlAction(0, 249, true)
     Wait(0)
  end
end)

@ultrahacx
Copy link

You can look into pma-voice:mutePlayer event or the mute command if you want to mute the player

@Krizmatic
Copy link
Author

@AvarianKnight I have tried that already. It won't work.
@ultrahacx Sure.

@AvarianKnight
Copy link
Owner

You can use the mute stuff that was added as an export for this.

@AspectJG
Copy link

AspectJG commented Oct 9, 2022

Hello there

Its there a way to stop people talking when dead?

CreateThread(function()
while isDead do
DisableControlAction(0, 249, true)
Wait(0)
end
end)

This is not really an option since people can change their key Gta Config

@AvarianKnight
Copy link
Owner

... That's not how keybinds work, that action doesn't magically go away if they bind it to a different key, either way this was possible before FiveM added PTT going through any action disable (mainly so you can talk in maps and iirc when the game is alt-tabbed)

You can see a more recent workaround in this discussion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants