Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling issues #15

Open
K3llerk1nd98 opened this issue Dec 15, 2024 · 1 comment
Open

Calling issues #15

K3llerk1nd98 opened this issue Dec 15, 2024 · 1 comment

Comments

@K3llerk1nd98
Copy link

Hey mate,
Schön zu sehen dass du erreichbar bist. :D
Ich habe einige Probleme beim Telefonieren gefunden, da dein Code erheblich anders funktioniert als der normale C#..
Ich bin gerade am Handy, in 1,5 Stunden bekommst du Screenshots und Fehlermeldungen.
Ich könnte da deine Hilfe gebrauchen.. ^^

@K3llerk1nd98
Copy link
Author

K3llerk1nd98 commented Dec 15, 2024

im telefon-script (qs-smartphone-pro) ist folgendes für den voice-chat:
clientside:
`local pma = exports['pma-voice']
local mumble = exports['mumble-voip']
local toko = exports['tokovoip_script']

function AddToCall(callId)
if Config.Voice == 'pma' then
pma:addPlayerToCall(callId)
elseif Config.Voice == 'mumble' then
mumble:addPlayerToCall(callId)
elseif Config.Voice == 'salty' then
TriggerServerEvent('phone:addToCall', callId)
elseif Config.Voice == 'toko' then
toko:addPlayerToRadio(callId)
end
end

function RemoveFromCall(callId)
if Config.Voice == 'pma' then
pma:removePlayerFromCall()
elseif Config.Voice == 'mumble' then
mumble:removePlayerFromCall()
elseif Config.Voice == 'salty' then
TriggerServerEvent('phone:removeFromCall', callId)
elseif Config.Voice == 'toko' then
toko:removePlayerFromRadio(callId)
end
end
serverside:local salty = exports['saltychat']

RegisterNetEvent('phone:addToCall', function(callId)
local src = source
if Config.Voice == 'salty' then
salty:AddPlayerToCall(tostring(callId), src)
end
end)

RegisterNetEvent('phone:removeFromCall', function(callId)
local src = source
if Config.Voice == 'salty' then
salty:RemovePlayerFromCall(tostring(callId), src)
end
end)

RegisterNetEvent('phone:toggleSpeaker', function(enabled)
local src = source
if Config.Voice == 'salty' then
salty:SetPhoneSpeaker(src, enabled == true)
end
end)
`

mit der C#-Version kannst du wunderbar telefonieren, auflegen etc..
In dieser Version, hört man die Gegenseite bis zum Rejoin, also ein Telefonat wird nicht richtig beendet...
Folgendes passiert im Clientlog:
[ 1702953] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 3^0 [ 1703953] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 3^0 [ 1704969] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 3^0 [ 1705969] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 3^0 [ 1706969] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 3^0 [ 1706984] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[GetOrCreateVoiceClient] Create VoiceClient with non existing Player 4 [4] Server-xxlil_rexexx^0 [ 1706984] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnEstablishCall] 4 [4] Server-xxlil_rexexx^0 [ 1706984] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[GetOrCreateVoiceClient] Create VoiceClient with non existing Player 4 [4] Server-xxlil_rexexx^0 [ 1707969] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 3^0 [ 1708781] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 11^0 [ 1708781] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[SetPlayerTalking] Own Player is talking [3] Server-K3llerk1nd true^0 [ 1708797] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 11^0 [ 1708797] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[SetPlayerTalking] Own Player is talking [3] Server-K3llerk1nd true^0 [ 1708984] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 3^0 [ 1709953] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 6^0 [ 1709969] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 11^0 [ 1709969] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[SetPlayerTalking] Own Player is talking [3] Server-K3llerk1nd false^0 [ 1709984] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 11^0 [ 1709984] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[SetPlayerTalking] Own Player is talking [3] Server-K3llerk1nd false^0 [ 1709984] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 3^0 [ 1711000] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 3^0 [ 1711172] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 11^0 [ 1711172] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[SetPlayerTalking] Find other talking Player^0 [ 1712015] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 3^0 [ 1713000] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 3^0 [ 1713250] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 11^0 [ 1713250] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[SetPlayerTalking] Find other talking Player^0 [ 1713797] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 6^0 [ 1713797] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 11^0 [ 1713797] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[SetPlayerTalking] Own Player is talking [3] Server-K3llerk1nd true^0 [ 1713797] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 11^0 [ 1713797] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[SetPlayerTalking] Own Player is talking [3] Server-K3llerk1nd true^0 [ 1714015] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 3^0 [ 1714484] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 6^0 [ 1714500] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[GetOrCreateVoiceClient] Create VoiceClient with non existing Player 4^0 [ 1714500] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnEndCall] 4 {"ServerId":4,"DistanceCulled":true,"Player":{"ServerId":0,"GetIsAlive":"[function]","Handle":-1,"Name":"**Invalid**","Character":{"PlayAnimation":"[function]","ClearTasks":"[function]","ped":{"IsSwimmingUnderWater":"[function]","Position":"[function]","Handle":"[function]","IsInPoliceVehicle":"[function]","IsVisible":"[function]","IsSwimming":"[function]","CurrentVehicle":"[function]"},"StopAnim":"[function]"},"State":[]},"VoiceRange":0.0,"IsAlive":true}^0 [ 1714562] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 11^0 [ 1714562] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[SetPlayerTalking] Own Player is talking [3] Server-K3llerk1nd false^0 [ 1714562] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 11^0 [ 1714562] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[SetPlayerTalking] Own Player is talking [3] Server-K3llerk1nd false^0 [ 1715031] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 3^0 [ 1716031] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 3^0 [ 1717000] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 11^0 [ 1717000] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[SetPlayerTalking] Find other talking Player^0 [ 1717031] [b3095_GTAProce] MainThrd/ [^8saltychat-lua ^3DEBUG^0] ^3[OnMessage] Data 3^0

Saltychat ist im Debug-Modus um die ganzen Infos zu sehen.. Kannst du herraus sehen, warum ein Telefonat nicht beendet wird?
Bzw. was in dieser Lua-Version von Saltychat überarbeitet werden muss?^^
Danke im Vorraus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant