[PAID][ESX] Emergency Phone - (Leitstellen Script)


*Credits for the thumbnails :heart:

Hey guys!

Thats my second release, hope you enjoy.

This script is used to have a control center (emergency phones) for different fractions.
So LSPD can be reached via 911 for example.

  • Add or remove new emergency phones
  • Take emergency phone
    • Changes your number to the configurated number in the config
  • Give emergency phone back
    • Gives you normal number back
  • Phone resets on player leave/quit or player death
  • Messages to all player
    • You can add as many messages as you want for each job
  • OnDuty list of the employees in the job
    • Message the player directly
  • Messages when an employee enters or leaves the service
  • Messages when an employee takes over or returns the control station


  • gcPhone
  • d-Phone
  • ChezzaPhone
  • High Phone
  • GKS-Phone
  • RoadPhone
  • Quasar-Smartphone


Language support

  • german
  • english
  • french

Of course you can also add your own language in the configuration!

Showcase Video
New Showcase Video! (18.01.2022)

Pictures

Screenshot_1

Screenshot_2

message1

Config



  • any of the phone mention above
  • ESX (v1.1, v.1.2 (final))
  • NativeUI

Buy the Script (Tebex)
Using Asset Escrow

Have a look at my other Scripts :heart:
[ESX/QB] Christmas Advent Calendar NEW!
[ESX/QB] Insurance & Membershipsystem NEW!
[ESX/QB] Advance Tax-System
[ESX/QB] Visa-/Visumsystem
[ESX/QB] Duty Blips - See which business is online!
[ESX/QB] Item Blips - Reveal Blips on Item usage!
[ESX] Business Cards
[ESX] Random Dealer
[ESX] Simcards
[ESX] noHUD Notify
[ESX] Vehicle Tracker (with Police functions)

8 Likes
Changelogs:
v1.1 - 15.06.2021
  • Fixed slow database request error
  • Added Badged (manned/unmanned control center)
  • Added translation for custom messages (Notification)
  • Added translation for free control centre
  • Added language support → french

v1.2 - 24.11.2021
  • Script simplified and unnecessary code summarized and removed if necessary
  • Added Support for d-Phone
  • Added Support for Chezza Phone
  • Fixed some upcoming bugs

v1.3 - 08.12.2021
  • Script simplified and unnecessary code summarized and removed if necessary
  • Added onduty employee list (Klick to call employee)
  • Added some Messages like onduty, offduty etc.
  • Fixed reset control center for chezza’s Phone if player is online
  • Fixed some minor bugs

v1.4/v1.5 - 13.12.2021
  • Fixed returning control center after reconnect/server restart
  • Fixed OnDuty call employee bug for chezzas phone
  • Added Support for okokNotify
  • Fixed returning control center for d-Phone when player is online

v1.6 - 01.01.2022
  • Added version check
  • Added support for ESX 1.1
  • Fixed minor bugs
  • Fixed onduty list

v1.7 - 12.01.2022
  • Added Config.getSharedObject option to be able to change the Eventname
  • Change Menu Buttons (only small design adjustments)

v1.8 - 14.01.2022
  • Added Config option to enable/disable message for unauthorized jobs

v1.9 - 15.01.2022
  • Reduced DB-requests → performance improvements (gcphone)
  • Fixed bug that the number in the phone is not updated (gcphone)

v2.0 - 18.01.2022
  • Fixed: User got a wrong number from system
  • Fixed: User still has control center number after reset/return
  • Fixed: Dublicated OnDutyList entries
  • Fixed: Huge DB requests → Huge performance increase!
  • Added: Beta-Support for High-Phone
  • Changed: Some menu improvements

v2.1 - 25.01.2022
  • Removed: reset emergency phone function
  • Added: automatic emergency phone reset on: player death and disconnect
  • Fixed: On/offduty message only for emergency phone jobs

v2.2/v2.3 - 27.02.2022
  • Added Support for ESX Legacy (not final update!)
  • Added Support for AstraNotify
  • Added Broadcast-Message option
  • Added Private-Message option

v2.4 - 06.03.2022
  • Added Support for Linden Multichar
  • Fixed minor bugs

v2.5 - 14.04.2022
  • Added Support for gksphone
  • Fixed Saveplayers server-error
  • Fixed minor bugs

v2.6 - 17.06.2022

:dizzy: New stuff:

  • Custom Notify-System support
  • Possibilities to block control center function for individual jobs
  • Possibilities to block message function for individual jobs
  • Possibilities to add pre-wrote messages

:recycle: Changes:

  • Much unnecessary code removed
  • Server-side functions simplified

:lady_beetle: Bugfixes:

  • Return-Function should work now
  • Ranklimitations should work now

:x: Removed:

  • Call option in onduty employee list

v2.8 - 29.07.2022

:lady_beetle: Bugfixes:

  • Fixed problem for chezza phone

Info: Download the new version via keymaster or just simply change the numbers in the config from 911 to “911”
BECAUSE THATS THE FIX WTF


v2.9 - 31.07.2022

:dizzy: New stuff:

  • Custom Notify-System support for server sided notifications

:recycle: Changes:

  • Removed unnessery DB-Request

:lady_beetle: Bugfixes:

  • Fixed problem for messages to employee

v3.0 - 03.09.2022

:dizzy: New stuff:

  • nothing :frowning:

:recycle: Changes:

  • Changed message length 32 → 256

:lady_beetle: Bugfixes:

  • Error: SCRIPT ERROR ?: -1: attempt to index a nil value should be fixed now (hopefully)

v3.1 - 06.09.2022

:dizzy: New stuff:

  • Support for Quasar-Smartphone

:recycle: Changes:

  • nothing :confused:

:lady_beetle: Bugfixes:

  • Returning control center after dying

Info: You need the FakeNumber DLC for quasar-smartphone


v3.2 - 07.09.2022

:dizzy: New stuff:

  • Control center is automatically returned when going off-duty (e.g. changing from police to offpolice)
  • Reset button built-in again
  • Discord-Webhooks for take, return and reset (message will perhaps follow if you want to)

:recycle: Changes:

  • Code completely rewritten
  • Fakenumber DLC no longer needed for Quasar-Smartphone
  • Removed a lot of unnecessary code
  • Automatic return of the control center code redone (should work fine now)
  • Many unnecessary database queries deleted

:lady_beetle: Bugfixes:

  • Menu opens directly and not after 500 ms
  • All server side bugs should be fixed
  • Broadcast messages are no longer sent to all

Important: Fakenumber DLC no longer needed for Quasar-Smartphone

1 Like

Thanks for the good script :slight_smile:

1 Like

Very good and functional script! Finally a REAL call center where players can voice call someone for more RP! I’m glad I bought this (and the bundle is really interesting by the way xD)

1 Like

Will you eventually make a non esx version I need it for a vmenu server

Thanks so much! :smiley:

Thank you, nice to hear! :smiley:

Since I’m only experienced with ESX myself I can’t say, sorry :confused:
Possibly I will deal with it in the future.

can only one person at a time, per job, use the phone?

Yes, if several people have the same number, for example 911, it does not work with the phone.
But other people can reset the control center and then use the phone to be reached via, for example, 911.
However, the messages can be used by anyone who has the corresponding job.

Is there anyway people can use the same number? So if one officer picks up, all others get a call cancel. Or is this just not possible in Fivem?

@ItsCharlieTV
The script allows only one officer to have, for example, just the 911. I have made the experience that it is not possible that a number is assigned several times. Maybe there is a possibility with different mobile scripts, I don’t know them.

@GamingPions
@GamingPions
What if you set it up like this:

  1. Victim calls 911
  2. you have ten “dud” numbers 912, 913, 914 etc
  3. when victim calls 911, they are routed to one of the ten numbers instead. Cops on duty can see the calls from 912, 913, 914, 915 etc.
  4. They can accept/take those calls and again get routed to the police officers phone.

Would this work? I don’t know if you can do something like:
if x calls y then
call z
but maybe that is a work around. If this is somehow possible, i’d happily pay for it to be made. This is more what I want.

Does anyone now how to use it with the d-phone bc. i’ts not working with just changing the number in the db but there is a function in the d-phone called smth like d-phone:changenumber. i’m bad with mysql stuff so i dont know wich line i have to change

Hey @ProfessorPerry,
First you need to delete or comment out the “gcphone:updateall” event.
Then you just need to implement the changenumber event into the Servercallback “getnumber” which will give you the new number.

You could also implement it in the server sided script.

If you need more help, just pm me :smiley:

thx <3 i will try it

1 Like

Important Update

v1.2 - 24.11.2021

  • Script simplified and unnecessary code summarized and removed if necessary
  • Added Support for d-Phone
  • Added Support for Chezza Phone
  • Fixed some upcoming bugs

New Update

v1.3 - 08.12.2021

  • Script simplified and unnecessary code summarized and removed if necessary
  • Added onduty employee list (Klick to call employee)
  • Added some Messages like onduty, offduty etc.
  • Fixed reset control center for chezza’s Phone if player is online
  • Fixed some minor bugs

hello i got the error error checking the protected resource
how do i fix this? ESX latest version

your discord link no longer works

1 Like

Tolles Script,

Wird es einen Support für das “Road Phone” geben? Das wäre ziemlich nice!

1 Like