Code Monkey home page Code Monkey logo

Comments (5)

HezimX avatar HezimX commented on September 23, 2024

Are you using the reales version?

from gcphone-rewritten.

deBBuu avatar deBBuu commented on September 23, 2024

i fixed triggering anim when phone open

replace from line 326 to 360

RegisterNetEvent("gcPhone:receiveMessage")
AddEventHandler("gcPhone:receiveMessage", function(message)
  -- SendNUIMessage({event = 'updateMessages', messages = messages})
  SendNUIMessage({event = 'newMessage', message = message})
  table.insert(messages, message)
    if menuIsOpen == false and message.owner == 0 then
      local app = _U('new_message')
      if Config.ShowNumberNotification == true then
        app = _U('new_message_from', message.transmitter)
        for _,contact in pairs(contacts) do
          if contact.number == message.transmitter then
            app = _U('new_message_transmitter', contact.display)
            break
          end
        end
      end

      SendNUIMessage({event = 'updateNotification', active = true})
      SendNUIMessage({
        event = 'updateNotificationInfo', 
        info = {
          app = app,
          icon = 'sms',
          prefix = 'fas',
          color = '#87fc6a',
          message = message
        }
      })
      PlaySound(-1, "Menu_Accept", "Phone_SoundSet_Default", 0, 0, 1)
      Citizen.Wait(300)
      PlaySound(-1, "Menu_Accept", "Phone_SoundSet_Default", 0, 0, 1)
      Citizen.Wait(300)
      PlaySound(-1, "Menu_Accept", "Phone_SoundSet_Default", 0, 0, 1)
    end
end)

from gcphone-rewritten.

deBBuu avatar deBBuu commented on September 23, 2024

Are you using the reales version?

im using newest version of phone and esx_addons_gcphone

from gcphone-rewritten.

HezimX avatar HezimX commented on September 23, 2024

Dont need to remove hasPhone allready fixed in this commit
You need to download from the git not the newst version
Esx_addons_gcphone think you dont need it it in gcphone/addons

7e554d2

from gcphone-rewritten.

deBBuu avatar deBBuu commented on September 23, 2024

Dont need to remove hasPhone allready fixed in this commit
You need to download from the git not the newst version

7e554d2

Yea you're right i had older version... now everything works perfectly but still i recommend changing 333 line to this
if menuIsOpen == false and message.owner == 0 then

Im using esx_addons_gcphone for police/ambulance dispatch

from gcphone-rewritten.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.