Configuring the resource

Configuring the Emergency Call Points resource is simple!

Load Distance

This is the range from which the call points will load on the client. We advise that there is no need to change this distance.

loadDistance = 150.0,

Use Distance

This is the range from which the call point can be used. We advise that there is no need to change this distance.

useDistance = 3.0,

Max Distance To Remove

This is the maximum distance you are able to be to successfully use the removal command.

loadDistance = 150.0,

Cooldown Length

This is the amount of time (in seconds) which a given call point goes on cooldown and cannot be used after a usage.

cooldownLength = 60,

Client Cooldown Length

This is the amount of time which a client is unable to use a call point for after using any call point.

clientCooldownLength = 60,

Developer Mode

Enables or disables the /callpoints command.

developerMode = true,

Use Key and Close Door Keys

useKey = {0, 38},
closeDoorKey = {0, 73},

Models

You do not need to change this setting - we've simply included for if advanced users opt for a model with a different name.

models = {
        callPoint = `b3d_pho1a`,
        door = `b3d_pho1b`,
},

Command Translations

Here you can change the translations for the /callpoints and /showcallpoints commands into another language if you wish to do so.

commandTranslations = {
    -- This command is used to toggle the visibility of call point blips on the map
    showcallpoints = {
        command = "showcallpoints",
        suggestion = "Toggle blips for emergency call points.",
    },

    -- This command is used to create and remove new call points
    callpoints = {
        command = "callpoint",
        suggestion = "Create and remove emergency call points.",
        create = "create",
        remove = "remove",
        incorrectUsage = "~r~Error: ~w~Incorrect usage. Use /callpoint create/remove.",
    },
},

Translations

Here you can change the messages output by the resource in a number of places. If any messages are not configurable here, open a ticket on our support panel and we will get this added.

translations = {
    placingCallPoint = "Press ENTER to finish call point placement.",
    grabObject = "Grab Object",
    rotateObject = "Rotate Object",
    cancelPlacement = "Cancel Placement",
    finishPlacement = "Place Object",
    enteringPlacementMode = "You are now in placement mode. Adjust the placement of the call point, and press ENTER to complete.",
    callPointCreated = "~g~Success: ~w~You have created a new emergency call point.",
    callPointRemoved = "~g~Success: ~w~You have removed your nearest emergency call point.",
    noPermission = "~r~Error: ~w~You do not have permission to use this command.",
    tooFarToRemove = "~r~Error: ~w~You are not in range of an emergency call point.",
    commandSuggestion = "Create or remove an emergency call point.",
    blipsNowVisible = "Emergency call point blips are now visible on the map.",
    blipsNowHidden = "Emergency call point blips are now hidden from the map.",
    pressToOpen = "Press E to open the emergency call point.",
    pressToUse = "Press E to use the emergency call point. \nPress X to close the door.",
    enterMessageForEmergency = "Enter your message for the emergency services.",
    callSent = "Your call to the emergency services has been made.",
    clientOnCooldown = "You must wait before making another emergency call.",
    callPointOnCooldown = "This callpoint was used recently by another user. Please wait before using it again.",
},

Notifications

Here you can enable or disable notification integration with your desired framework. If you would like to use base game notifications set enabled to true, and leave all other framework options as false.

notifications = {
    enabled = true, 
    framework = {
        ESX = false,
        QBCore = false,
        QBX = false,
        vRP = false,
        okok = false,
    }
},

Integrations

In this section you can select either an audio or text call to be made when using the phone. Be sure to enable the method of call with the enabled value, as well as the dispatch or phone type also.

We have included LB-Phone support out of the box, but are interested in adding more in the future. Let us know your phone system if it is not included and we can seek to implement this in the future.

Controls

Here you can edit the controls for the /callpoints command. This uses the same control references as mentioned previously.

controls = {
    grabObject = 223,
    rotateObject = 250,
    cancelPlacement = 177,
    finishPlacement = 191,
    showInstructions = 24
},

Last updated

Was this helpful?