From fc93c051771dc30e2635715fbb3d4f2b9d05cfec Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 22 Jun 2018 15:59:50 +0200 Subject: [PATCH] =?UTF-8?q?Bloque=20le=20joueurs=20qui=20repond=20=C3=A0?= =?UTF-8?q?=20un=20telephone=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 6 +++--- resources/gcphone/client/client.lua | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/readme.md b/readme.md index d707844..16267b3 100644 --- a/readme.md +++ b/readme.md @@ -4,9 +4,9 @@ ![Image of gcphone1](https://i.imgur.com/naTiBgI.png) ![Image of gcphone2](https://i.imgur.com/LAicovK.png) -![Image of gcphone3](https://i.imgur.com/LAicovK.png) -![Image of gcphone4](https://i.imgur.com/imWPohA.png) -![Image of gcphone5](https://i.imgur.com/rzWdDMy.png) +![Image of gcphone3](https://i.imgur.com/imWPohA.png) +![Image of gcphone4](https://i.imgur.com/rzWdDMy.png) +![Image of gcphone5](https://i.imgur.com/9h7eiI8.png) ## Fonctionalitées diff --git a/resources/gcphone/client/client.lua b/resources/gcphone/client/client.lua index d8e9cd9..7e3c21b 100644 --- a/resources/gcphone/client/client.lua +++ b/resources/gcphone/client/client.lua @@ -38,7 +38,6 @@ function startFixeCall (fixeNumber) number = GetOnscreenKeyboardResult() end if number ~= '' then - print('stat', number) TriggerEvent('gcphone:autoCall', number, { useNumber = fixeNumber }) @@ -94,13 +93,14 @@ Citizen.CreateThread(function () AddTextComponentString("~INPUT_PICKUP~ Décrocher") DisplayHelpTextFromStringLabel(0, 0, 1, -1) if IsControlJustPressed(1, KeyTakeCall) then + PhonePlayCall(true) TakeAppel(PhoneInCall[i]) PhoneInCall = {} StopSound(soundId) end end - break - end + break + end end if inRangeToActivePhone == false then showFixePhoneHelper(coords)