[vRP] vrp_addons_gcphone

Introduction

OwO everybody! :rofl: This is a simple addon for gcphone that connects emergency calls to vRP.
If you install this on your server, you’ll be able to recive emergency calls on your message app.

Requirements

  • vRP (dunko)
  • gcphone (for vRP)
  • Nothing else… :sweat_smile:

Installation

You should have gcphone and vRP correctly setup. Then you should add these codes to your gcphone config located inside the @gcphone/html\static\config\config.json

"serviceCall": [
  {
    "display": "Polizia",
    "icon": "a cool icon!",
    "subMenu": [
      {
        "title": "Manda un messaggio",
        "eventName": "vrp_addons_gcphone:call",
        "type": {
          "number": "Polizia",
          "permission": "cop.whitelisted"
        }
      }
    ]
  }
]

Where display is the name shown on the list, icon is the icon shown on the list, title is what poups up when clicked, number is the actual number registered on the database (this can be everyting you want, but i suggest leaving this like this and permission is the permission assigned to the group (read below).

and put the permission inside the group you want to send the emergency call, like this:

["Captain"] = {
  --some perms
  "cop.whitelisted",
  --more perms
},

Then, at the end, go to @vrp/cfg/phone.lua and add the service with the name displayed in title and number like this one

["Polizia"] = {
    --whatever is inside here is usless for this addon...
},

Hope you like this :grin:. If you have any troubles feel free to write down below ;D

Oh… the download… right… here you have it ;D
Cool link O.O

2 Likes

Simm e napl paesan

1 Like

dosn't work );! :face_with_thermometer:

q6

q4 q3 q2 q1

does your grups have the police.service permission in them? Cause for me it’s working And, as i said in the post, The names of the services must match not the permission.


When I call the police, the cell phone screen goes back to the beginning and the text window opens like that, but I can’t write. It doesn’t work.

I think that your gcphone does not work properly. The only thing that rhe script is doing, is to catch the message that you input from the gcphone, then send it to my script that catch coords and number of the player; then it send the message to everyone with that permission you put in te cfg of gcphonoe. Everything using only gcphone events.

It works well now.
But the job call doesn’t work.
I did the same thing as you.I copied the sentence and tried it, but the cell phone screen is white.

Hello i’ve made everything that you did and still not working :c can you help me?

for your script i need the gcphone for vrp. Where i can find it, because i can’t find it anywhere

When using GCPhone for VRP I can not enter on any text box and input text? We know why?

Hello i’ve made everything that you did and still not working :c can you help me?