Z4Zy Posted January 15, 2019 Share Posted January 15, 2019 Hello again ! Actually below code is also not working. Client Side :- addCommandHandler("setvoice", function (command,sound1,sound2) if sound1 and sound2 then outputChatBox("playing") setPedVoice(getLocalPlayer(), sound1, sound2) end end ) Accordingly, this outputs "playing" but the player does not talking at least a word. What may be the problem here ? Link to comment
DNL291 Posted January 16, 2019 Share Posted January 16, 2019 Make sure the two last arguments of the function are correct. You can test this code and show here the outputs on the chat: addCommandHandler("setvoice", function (command,sound1,sound2) if sound1 and sound2 then outputChatBox( "sound1: "..tostring(sound1) ) outputChatBox( "sound2: "..tostring(sound2) ) setPedVoice(getLocalPlayer(), sound1, sound2) end end ) 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now