Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

[BUG] #65

Open
ThatOneGuy35 opened this issue Apr 7, 2021 · 11 comments
Open

[BUG] #65

ThatOneGuy35 opened this issue Apr 7, 2021 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@ThatOneGuy35
Copy link

Describe the bug
When trying to call someone, the person will not get a notification at all of the incoming call and this error appears clientside.
SCRIPT ERROR: @gcphone/client/client.lua:37: attempt to call a nil value (local 'cb')
handler client/client.lue: 433

To Reproduce
Steps to reproduce the behavior:
Attempt to call someone

Expected behavior
Other person's phone to ring and give a notification

Screenshots
If applicable, add screenshots to help explain your problem.

FiVEM(please complete the following information):

  • Artifact: Latest (as of 4/6/21)
  • Voice Software TokoVoip

Additional context
None

@ThatOneGuy35 ThatOneGuy35 added the bug Something isn't working label Apr 7, 2021
@sparcoxalpha
Copy link

Same for me also,i already reported but no response 😞

@deBBuu
Copy link

deBBuu commented Apr 7, 2021

Hi! I found an solution
Simply, go to client.lua line 427

and replace this

RegisterNetEvent("gcPhone:waitingCall")
AddEventHandler("gcPhone:waitingCall", function(infoCall, initiator)
  if initiator == true then
    SendNUIMessage({event = 'waitingCall', infoCall = infoCall, initiator = initiator})
    PhonePlayCall()
    if menuIsOpen == false then
      TooglePhone()
    end
  else
    hasPhone(function (hasPhone)
      if hasPhone == true then
        SendNUIMessage({event = 'waitingCall', infoCall = infoCall, initiator = initiator})
      end
    end)
  end
end)`

with

 
RegisterNetEvent("gcPhone:waitingCall")
AddEventHandler("gcPhone:waitingCall", function(infoCall, initiator)
  SendNUIMessage({event = 'waitingCall', infoCall = infoCall, initiator = initiator})
  if initiator == true then
    PhonePlayCall()
    if menuIsOpen == false then
      TooglePhone()
    end
  end
end)

@sparcoxalpha
Copy link

Is there any solution for not hearing sound while phone call

@sparcoxalpha
Copy link

With tokovoip

@deBBuu
Copy link

deBBuu commented Apr 7, 2021

idk

@HezimX
Copy link

HezimX commented Apr 7, 2021

With tokovoip

Yes there is you need to add some cods in client.lua ill send you the changes when i get time

@sparcoxalpha
Copy link

Please do asap.. waiting

@HezimX
Copy link

HezimX commented Apr 7, 2021

Please do asap.. waiting

try this one remember to add html file

gcphone.zip

@ThatOneGuy35
Copy link
Author

Hi! I found an solution
Simply, go to client.lua line 427

and replace this

RegisterNetEvent("gcPhone:waitingCall")
AddEventHandler("gcPhone:waitingCall", function(infoCall, initiator)
if initiator == true then
SendNUIMessage({event = 'waitingCall', infoCall = infoCall, initiator = initiator})
PhonePlayCall()
if menuIsOpen == false then
TooglePhone()
end
else
hasPhone(function (hasPhone)
if hasPhone == true then
SendNUIMessage({event = 'waitingCall', infoCall = infoCall, initiator = initiator})
end
end)
end
end)`
with

RegisterNetEvent("gcPhone:waitingCall")
AddEventHandler("gcPhone:waitingCall", function(infoCall, initiator)
SendNUIMessage({event = 'waitingCall', infoCall = infoCall, initiator = initiator})
if initiator == true then
PhonePlayCall()
if menuIsOpen == false then
TooglePhone()
end
end
end)

Doesn't work for me.

@sparcoxalpha
Copy link

Please do asap.. waiting

try this one remember to add html file

gcphone.zip

Ok thanks dude,i ll try

@DmACKGL
Copy link
Owner

DmACKGL commented Apr 8, 2021

Hey Everyone,

This week I had a lot of work, that's why I didn't update the resource, I hope I'll return to development next week if everything goes as planned. So sorry.

All forks and pull request fixing problems are COMPLETELY welcome (and pls do, that's the idea of having an open-source project, so everyone can help to improve the resource)

(Copy paste of #67)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants