Skip to content

Commit

Permalink
feat(client/voice): implementation of pma-voice
Browse files Browse the repository at this point in the history
  • Loading branch information
BombayV committed Aug 18, 2021
1 parent 7156826 commit 5e580ee
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
20 changes: 16 additions & 4 deletions client/hud_cl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,22 @@ if not Config.usePMAvoice then
else
function currentVoiceMode(value)
print(value)
SendNUIMessage({
action = 'voiceMode',
microphone = value
})
if (value == 1) then
SendNUIMessage({
action = 'voiceMode',
microphone = 33
})
elseif (value == 2) then
SendNUIMessage({
action = 'voiceMode',
microphone = 66
})
elseif (value == 3) then
SendNUIMessage({
action = 'voiceMode',
microphone = 100
})
end
end
exports('currentVoiceMode', value)
end
Expand Down
2 changes: 1 addition & 1 deletion fxmanifest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fx_version 'cerulean'

game 'gta5'

version '3.0.0'
version '3.2.1'

description 'Standalone hud created by a Entity Evolution'

Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1
3.2

0 comments on commit 5e580ee

Please sign in to comment.