Voip in hud

Hi i need help. i have a hud that have voip. how do i use it? Do i trigger something och do i change something in voip script

I think I saw a post that said bypassing the blacklisted words could get moderator action taken against you, but no worries I’ll try to help. Which HUD are you using as of now?

1 Like

i dont get why its blacklisted XD

but i use this

1 Like

I checked the github, isnt it already in the code?

		if isTokovoip then
			tokoVoipLevel =  exports.tokovoip_script:getPlayerData(GetPlayerServerId(PlayerId()), 'voip:mode')
			if tokoVoipLevel == 1 then
				SendNUIMessage({
					action = 'voice',
					prox = 1
				})
			elseif tokoVoipLevel == 2 then
				SendNUIMessage({
					action = 'voice',
					prox = 2
				})
			elseif tokoVoipLevel == 3 then
				SendNUIMessage({
					action = 'voice',
					prox = 0
				})
			end
		else
			if IsControlJustReleased(1, 20) then
				currLevel = (currLevel + 1) % 3
				if currLevel == 0 then
					SendNUIMessage({
						action = 'voice',
						prox = 0
					})
					vol = 26.0
					print("shout", vol)
				elseif currLevel == 1 then
					SendNUIMessage({
						action = 'voice',
						prox = 1
					})
					vol = 10.0
					print("normal", vol)
				elseif currLevel == 2 then
					SendNUIMessage({
						action = 'voice',
						prox = 2
					})
					vol = 2.5
					print("whisper", vol)
				end
				NetworkSetTalkerProximity(vol)
			end
		end
    end
end)


Citizen.CreateThread(function()
    while true do
		Citizen.Wait(200)

		if isTokovoip then
			SendNUIMessage({
				action = 'voice-color',
				isTalking = exports.tokovoip_script:getPlayerData(GetPlayerServerId(PlayerId()), 'voip:talking')
			})
		else
			if NetworkIsPlayerTalking(PlayerId()) then
				SendNUIMessage({
					action = 'voice-color',
					isTalking = 100
				})
			else
				SendNUIMessage({
					action = 'voice-color',
					isTalking = 0
				})
			end
		end
	end
end)

yes but i still have the viop in the left corner
and the wisper and normal and shout is not sync.
if i set the hud to normal then it is whisper on tok.
have no ide how to get it only working in the hud.

Hmm weird, I’m currently using [Release] Scrubz Hud as its more customisable, if you eventually want to use that I could possibly help you. I also wrote some guides longer down in his post.

1 Like

can i use voip in it ? :stuck_out_tongue: have seen it and looks good :stuck_out_tongue:

1 Like

Yes, if you scroll down you can see how to use the voip system you mentioned earlier, I have created a few guides down in his post showing how to use esx_basicneeds and “blacklistedvoip”

Nice :slight_smile: thanx for the help

1 Like

No worries!

1 Like