Code Monkey home page Code Monkey logo

gcphone's Introduction

Téléphone pour FiveM

Image of gcphone1 Image of gcphone2 Image of gcphone3 Image of gcphone4 Image of gcphone5

Fonctionalitées

  • List des conctacts
  • Envoie de sms
  • Appel vocal
  • Appel anonyme
  • Application Banque
  • Application Tchat anonyme
  • Application Bourse
  • Coque / Fond ecran customisable
  • . . .

Configuration

Modifier le fichier /html/static/config/config.json

{
  "//": "Nom du reseau situé dans bare du téléphone",
  "reseau": "Gannon",
  
  "//": "Couleur de base du téléphone",
  "themeColor": "#303f9f",

  "//": "List des couleurs pour les conctacts",
  "colors": [
    "#EF5350",
    "#EC407A",
    "#AB47BC",
    "#7E57C2",
    "#5C6BC0",
    "#42A5F5",
    "#29B6F6",
    "#26C6DA",
    "#26A69A",
    "#66BB6A",
    "#9CCC65",
    "#D4E157",
    "#FFCA28",
    "#FFA726",
    "#FF7043",
    "#8D6E63",
    "#78909C"
  ],

  "//": "Si false, Ajoute un '-' dans le numero (###-####)",
  "useFormatNumberFrance": false,

  "//": "useWebRTCVocal: false => Appels avec channels de GTA",
  "//": "useWebRTCVocal: true  => Appels avec WebRTC",
  "useWebRTCVocal": true,

  "//": "Configuration des serveurs TURN à utilisé",
  "RTCConfig": {
    "iceServers": [{
      "urls": ["turn:gannon.ovh"],
      "username": "jojo",
      "credential": "pass"
    }]
  },


  "//": "List des fonds d'ecran disponible, location => /html/static/img/background",
  "background" : {
    "Calvin & Hobbes": "back001.jpg",
    "Destiny": "back002.jpg",
    "Stormtrooper": "back003.jpg",
    "Custom URL": "URL"
  },
  "//": "Fonds d'ecran par default",
  "background_default": {
    "label": "Calvin & Hobbes",
    "value": "back001.jpg"
  },

  "//": "List des coque disponible, location => /html/static/img/coque",
  "coque": {
    "Sansumg S8": "s8.png",
    "Iphone X": "iphonex.png",
    "Brick Base": "base.png",
    "Transparent": "transparent.png"
  },
  "//": "Coque par default",
  "coque_default": {
    "label": "Sansumg S8",
    "value": "s8.png"
  },

  "//": "Configuration des appels service (Favorie)",
  "serviceCall": [
    {

      "//": "Nom de l'item",
      "display": "Police",

      "//": "Optionnel: Couleur de puce",
      "backgroundColor": "red",

      "//": "Optionnel: Image de la puce",
      "icon": "/html/static/img/icons_app/bank.png",

      "//": "List des actions disponible",
      "subMenu": [
        {
          "//": "Titre de l'action",
          "title": "Envoyer un message",

          "//": "Nom de l'event trigger à l'utilisation",
          "eventName": "esx_addons_gcphone:call",

          "//": "Optionnel: Parametre 'data' envoyé avec l'event",
          "type": {
            "number": "police"
          }
        },
        {
          "title": "Appeler le standard",
          "eventName": "gcphone:autoCallNumber",
          "type": {
            "number": "911"
          }
        }
      ]
    },
    {
      "display": "Ambulance",
      "backgroundColor": "red",
      "subMenu": [
        {
          "title": "Envoyer un message",
          "eventName": "esx_addons_gcphone:call",
          "type": {
            "number": "ambulance"
          }
        }
      ]
    }
  ],

  "//": "Configuration des applications",
  "apps": [
    {
      "//": "Nom de l'application",
      "name": "Téléphone",

      "//": "Icons de l'application",
      "icons": "/html/static/img/icons_app/call.png",

      "//": "Route de l'application, NE PAS MODIFIER",
      "routeName": "appels",

      "//": "Si true, l'application serra disponible sur la home page",
      "inHomePage": true,

      "//": "Si false, l'application n'est pas visible",
      "enabled": true
    },
    {
      "name": "Messages",
      "icons": "/html/static/img/icons_app/sms.png",
      "routeName": "messages",
      "inHomePage": true,

      "//": "Référence au store, pour affiche un puce sous l'icone de l'app",
      "puceRef": "nbMessagesUnread",
    },
    {
      "name": "Contacts",
      "icons": "/html/static/img/icons_app/contacts.png",
      "routeName": "contacts",
      "inHomePage": true
    },
    {
      "name": "Paramètres",
      "icons": "/html/static/img/icons_app/settings.png",
      "routeName": "parametre",
      "inHomePage": true
    },
    {
      "name": "Bank",
      "icons": "/html/static/img/icons_app/bank.png",
      "routeName": "bank",
      "inHomePage": false
    },
    {
      "name": "Bourse",
      "icons": "/html/static/img/icons_app/bourse.png",
      "routeName": "bourse",
      "enabled": true
    },
    {
      "name": "Photo",
      "icons": "/html/static/img/icons_app/photo.png",
      "routeName": "photo"
    },
    {
      "name": "Dark Chat",
      "icons": "/html/static/img/icons_app/tchat.png",
      "routeName": "tchat"
    }
  ]
}

N'oublier pas de rajoute les nouveaux fichier dans le __ressource.lua

  • Vous pouvez modifier les sons dans \html\static\sound
  • Les coques doivent etre de 1000x500 px, La zone ecran est center de taille 800*400
  • Les application Banque & Bourse sont à configuré selon vos script

Les poste fixe sont configurable dans gcphone/config.lua

--[[
  Faite attention à ne pas utilisé un numéro qui entre en conflic avec un joueur
--]]
FixePhone = {
  -- Poste de police
  ['911'] = { name =  "Central Police", coords = { x = 441.2, y = -979.7, z = 30.58 } },
  
  -- Cabine proche du poste de police
  ['008-0001'] = { name = "Cabine Telephonique", coords = { x = 372.25, y = -965.75, z = 28.58 } },
}

License

GNU v3

Jonathan (Gannon) D

gcphone's People

Contributors

gannon001 avatar matspyder51 avatar frbillyd avatar

Watchers

James Cloos avatar  avatar

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.