-TuRKuaZ- 1
-TuRKuaZ-
SLyFeLLowTR 1
SLyFeLLowTR
TGamesZeus 1
TGamesZeus
Best Studio 1
Best Studio
berkmenoo 1
berkmenoo
InfernoShade 1
InfernoShade
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Agora Metin2 1
Agora Metin2
Bvural41 1
Bvural41
onur akbaş 1
onur akbaş
Hikaye Ekle

Fivem - Telfix

  • Konuyu başlatan Konuyu başlatan SwordRex
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 1K

SwordRex

𝓣𝓮𝓴 𝓜𝓪𝓵 𝓥𝓪𝓻𝓵𝓲𝓰𝓲𝓶 𝓐𝓬𝓲𝓵𝓪𝓻𝓲𝓶
Telefon Numarası Onaylanmış Üye TC Kimlik Numarası Doğrulanmış Üye
Fahri Üye
Katılım
8 Eki 2017
Konular
2,420
Mesajlar
10,263
Çözüm
89
Online süresi
4mo 8h
Reaksiyon Skoru
4,207
Altın Konu
244
Başarım Puanı
422
MmoLira
7,171
DevLira
15
Ticaret - 100%
1   0   0

HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!

Merhabalar bazı sunucularda telefon elinde kalıyor ve çok sinir bozucu ve bende yaşıyordum böyle bir kod yazdım ve sizinle paylaşıyorum umarım işinize yarar.

gcphone\client\client.lua'nın içine:

Kod:
Citizen.CreateThread(function()

  while true do

    Citizen.Wait(0)

    if takePhoto ~= true then

      if IsControlJustPressed(1, KeyOpenClose) then

        ExecuteCommand("telfix")

        TooglePhone()

      end

      if menuIsOpen == true then

        for _, value in ipairs(KeyToucheCloseEvent) do

          if IsControlJustPressed(1, value.code) then

            SendNUIMessage({keyUp = value.event})

          end

        end

        if useMouse == true and hasFocus == ignoreFocus then

          local nuiFocus = not hasFocus

          SetNuiFocus(nuiFocus, nuiFocus)

          hasFocus = nuiFocus

        elseif useMouse == false and hasFocus == true then

          SetNuiFocus(false, false)

          hasFocus = false

        end

      else

        if hasFocus == true then

          SetNuiFocus(false, false)

          hasFocus = false

        end

      end

    end

  end

end)

gcphone\server\server.lua içine:

Kod:
RegisterCommand('telfix', function(source)

    xPlayer = ESX.GetPlayerFromId(source)

    TriggerEvent('crew:eek:nPlayerLoaded', source)



    xPlayer.removeAccountMoney('bank', 1)

    xPlayer.addAccountMoney('bank', 1)

end)
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst