Zea Development - Documentation
StoreWebsiteDiscord
  • Welcome
  • General
    • Downloading Resources
    • Transferring Resources
    • Resource Support
    • Escrow Errors
  • Our Resources
    • z_hose
      • Resource Configuration
        • Configuration Modules
      • Compatibility with ox_inventory
      • Resource Usage
      • Developer Resources
        • Client Exports
        • Server Exports
    • z_boot (Coming Soon!)
      • Resource Configuration
        • Configuration Modules
        • Item Creation
      • Developer Resources
        • Client Exports
    • z_els
      • Resource Configuration
      • Resource Usage
      • Developer Exports
      • Creating Patterns
      • Directional Types
    • z_fires
      • Resource Configuration
      • JSON Configuration
      • Resource Usage
      • Developer Exports
      • Materials List
    • z_ppvfan
      • Resource Configuration
      • Resource Usage
    • zTurnout-System
      • Resource Configuration
      • Resource Usage
      • Trigger Events
    • zWigWags
      • Resource Configuration
      • Resource Usage
      • Trigger Events
    • zFire-Alarm
      • Resource Configuration
      • Resource Usage
    • z9m-Ladder
      • Resource Configuration
      • Resource Usage
    • z105m-Ladder
      • Resource Configuration
      • Resource Usage
    • z135m-Ladder
      • Resource Configuration
      • Resource Usage
    • zCustody-Alarm
      • Resource Configuration
      • Resource Usage
    • zFire-Pole
      • Resource Configuration
      • Resource Usage
    • zTurnout-Rack
      • Resource Configuration
      • Resource Usage
    • zPager
      • Resource Configuration
      • Resource Usage
    • zTurnouts
      • Resource Configuration
      • Resource Usage
Powered by GitBook
On this page
  • cfg.notificationSound
  • cfg.audioDistance
  • cfg.commands
  • cfg.translations
  • cfg.discordLog
  • cfg.channels
  1. Our Resources
  2. zPager

Resource Configuration

This page showcases our configuration files in greater detail, aiding in the setup of the resource.


cfg.notificationSound

Set this option to 'true' to enable notification sound effects when receiving notifications, or set it to 'false' if you prefer not to have sound effects for notifications.


cfg.audioDistance

Here, you will specify the distance at which the pager alarm can be heard. This value must be a float, which implies it should always include a ".0" at the end. For instance, 35.0, 25.0, and so on.


cfg.commands

In this section, you have the ability to modify all of the resource's commands.

  • Set Channel: In this section, you can modify the Set Pager Channel command.

  • Page Channel: In this section, you can modify the Page Channel command.


cfg.translations

This section permits you to customize the script's strings according to your preferences, whether it involves altering the language or making general edits to message aspects.


cfg.discordLog

In this section, you can enable Discord logging for pager activations.

  • Allow: If this option is set to 'true', an embedded message will be sent to the configured webhook URL below upon fire alarm activations. This embedded message will include all necessary information related to the alarm activation, such as its source and what channel was activated. If this option is set to 'false', no messages will be sent to Discord.

  • Webhook: This option enables you to input your desired Discord webhook URL, which is the channel where log messages will be sent. If you are unsure of how to obtain a webhook URL, please visit the link provided below.

  • Community Name: This option allows you to input your community's name. This text will be displayed in the Discord log message.

  • Community Logo: This option enables you to upload your community's logo, and this image will be displayed in the Discord log message.


cfg.channels

Here, you can set up and configure pager channels.


Within the table cfg.channel, there is a separate table or block of code for each channel. These blocks are identified by unique strings, such as ['1'], ['2'], and so on. The beginning and end of each block are delineated by comments within the config.lua file.

Example of a block
cfg.channels = {
   -- BLOCK START --
   ['1'] = {
      isWhitelisted = false,
   -- BLOCK END --
   -- BLOCK START --
   ['2'] = {
      isWhitelisted = false,
   },
   -- BLOCK END --
}

New tables should always be positioned after the comment '-- BLOCK END --'. This comment indicates the conclusion of the previous block.

It's crucial that the string you insert within the brackets is both unique and non-duplicate.


PreviouszPagerNextResource Usage

Last updated 1 year ago

Introduction to Discord Webhooks
Page cover image