hey i start to make a new emotion and write this !The text is showing but the sound can t please help me again and tell me where i making the problem
Client:
function GoodbyeEmotion(command)
triggerServerEvent( "onbye", getLocalPlayer() )
end
addCommandHandler("bb", GoodbyeEmotion)
addEvent( "onbye", true )
addEventHandler( "onbye", root, function()
local sound = playSound("sound/goodbuy.mp3")
end )
Server
addEvent( "onbye", true )
addEventHandler( "onbye", root, function()
outputChatBox( "* "..getPlayerName(source).." said: Goodbye all", root, 255, 0, 255, true )
end )
function GoodbyeEmotions(player, command)
triggerClientEvent("onbye", root)
end
addCommandHandler("bb", GoodbyeEmotion)