Jump to content

Attempt to call global 'setPlayerVoiceBroadcastTo'


xUltimate

Recommended Posts

I downloaded MTA 1.1-unstable and when I start the voice resource I get this error

ERROR: voice/sDefaultChannelManager.lua:33: attempt to call global 'setPlayerBroadcastTo' (a nil value) 

Heres the part where its getting the error

function setPlayerInternalChannel ( player, element, muted ) 
    if playerChannels[player] == element then 
        return false 
    end 
    playerChannels[player] = element 
    channels[element] = player 
    setPlayerVoiceBroadcastTo( player, element, muted ) --Line 33 
    return true 
end 

Edited by Guest
Link to comment
in your error there is

setPlayerBroadcastTo

but on your script is

setPlayerVoiceBroadcastTo

i assume another part of script is triggering this error. and you should see the typo (i assume setPlayerVoiceBroadcastTo is the right function name, you are using setPlayerBroadcastTo instead)

lol. i was typing it while looking at the server i meant to add the Voice in it.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...