GCPhone-Rewritten icon indicating copy to clipboard operation
GCPhone-Rewritten copied to clipboard

[BUG]

Open ThatOneGuy35 opened this issue 4 years ago • 11 comments

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 avatar Apr 07 '21 02:04 ThatOneGuy35

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

sparcoxalpha avatar Apr 07 '21 04:04 sparcoxalpha

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)

deBBuu avatar Apr 07 '21 11:04 deBBuu

Is there any solution for not hearing sound while phone call

sparcoxalpha avatar Apr 07 '21 12:04 sparcoxalpha

With tokovoip

sparcoxalpha avatar Apr 07 '21 12:04 sparcoxalpha

idk

deBBuu avatar Apr 07 '21 14:04 deBBuu

With tokovoip

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

HezimX avatar Apr 07 '21 14:04 HezimX

Please do asap.. waiting

sparcoxalpha avatar Apr 07 '21 19:04 sparcoxalpha

Please do asap.. waiting

try this one remember to add html file

gcphone.zip

HezimX avatar Apr 07 '21 21:04 HezimX

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.

ThatOneGuy35 avatar Apr 08 '21 01:04 ThatOneGuy35

Please do asap.. waiting

try this one remember to add html file

gcphone.zip

Ok thanks dude,i ll try

sparcoxalpha avatar Apr 08 '21 03:04 sparcoxalpha

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)

DmACKGL avatar Apr 08 '21 16:04 DmACKGL