STG ScriptsDocumentation
Radio Pack

Configuration

Every option in STG Radio Pack shared/config.lua, from the open key and the channels to SOS calls, the vehicle radio and the jammers.

The settings live in stg-radiopack/shared/config.lua and stg-radiopack/server/config.lua. Both files stay editable in the escrow version. Restart the resource after a change.

Language

Config.Language = 'en'

Available: en, de, fr, es, pt, it, nl, pl, sv, no, fi, cs, ar, he, jp, ko, zh. To change a text, edit the matching file in stg-radiopack/locales/.

Admin panel

Config.AllowedGroups = { 'god', 'superadmin', 'admin' }
Config.AdminCommand = 'radioadmin'

Prop

Type

Keys

Config.Key = {
    Enabled = true,
    Key = 'H',
    RequireItem = true,
}

Config.SosKey = 'G'
Config.KeyVolume = 0.2

Prop

Type

Players talk with the radio key of the voice script.

Items

Config.Items = {
    model01 = 'stg_radio_basic',
    model02 = 'stg_radio_flip',
    model03 = 'stg_radio_tactical',
    model04 = 'stg_radio_duty',
    model05 = 'stg_radio_rescue_red',
    model05_orange = 'stg_radio_rescue_orange',
    model05_navy = 'stg_radio_rescue_navy',
    jd1 = 'stg_radio_detector',
}

Config.JammerItems = {
    small = 'stg_jammer_small',
    medium = 'stg_jammer_medium',
    large = 'stg_jammer_large',
}

Change the item name on the right side to use your own items. The detector does not connect to channels. A jammer item goes into the player's own vehicle when one is close, and onto the ground when there is no vehicle around.

Channels

Config.Frequency = {
    Min = 0.001,
    Max = 999999,
}

Config.Channels = {
    { Label = 'Police', Frequency = 1 },
    { Label = 'Fire Dept', Frequency = 2 },
    { Label = 'EMS', Frequency = 3 },
    { Label = 'Dispatch', Frequency = 4 },
}

Config.ChannelPassword = true

Prop

Type

Talk animations

Config.Animations = {
    Enabled = true,
    List = {
        { Label = 'Shoulder', Dict = 'random@arrests', Name = 'generic_radio_chatter', Worn = 'shoulder' },
        { Label = 'Mouth', Dict = 'stg_radiopack_talk_2', Name = 'mouth', Radio = true },
        { Label = 'Ear', Dict = 'cellphone@', Name = 'cellphone_call_listen_base', Female = 'f_cellphone_call_listen_base', Radio = true },
        { Label = 'Chest Mic', Dict = 'stg_radiopack_talk_2', Name = 'chest', Female = 'chest_f', Worn = 'chest' },
        { Label = 'Shoulder Mic', Dict = 'stg_radiopack_talk_2', Name = 'shoulder', Female = 'shoulder_f', Worn = 'shoulder' },
        { Label = 'Earpiece', Dict = 'stg_radiopack_talk_2', Name = 'earpiece' },
    },
}

Prop

Type

Player defaults

Config.Defaults = {
    Volume = 70,
    Backlight = 80,
    MemberList = true,
    Mute = false,
    StreamerMode = false,
    Animation = 1,
    Theme = 'steel',
    KeyTone = true,
    PttTone = true,
}

Settings of a player who has not changed them. Every player changes them in the menu of the radio and they stay saved. Animation is the row in Config.Animations.List. Flip themes: steel, black, navy, white, pink, lilac, mint, red, beige, camo, desert, night, snow.

SOS

Config.Sos = {
    Jobs = false,
    Duration = 120,
    Cooldown = 60,
}

Prop

Type

Players hold the SOS key of the radio for 3 seconds.

Vehicle radio

Config.VehicleRadio = {
    Enabled = true,
    Model = 'vr1',
    Offset = vec3(0.26, 0.30, 0.08),
    Vehicles = {
        sheriff2 = { Offset = vec3(0.0, 0.335, 0.215) },
        speedo = { Model = 'vr2', Offset = vec3(0.02, 0.44, 0.11) },
    },
}

Prop

Type

Dashboards are different in every vehicle. When the radio floats or sinks into the dashboard of a vehicle, add a line for it to Vehicles and move the offset a few centimeters.

Jammers and detector

Config.JammerRanges = {
    small = { 50, 100, 250 },
    medium = { 100, 250, 500, 1000 },
    large = { 100, 250, 500, 1000, 2500, 5000 },
}

Config.MaxGroundJammers = 3
Config.DetectorRange = 400.0

Prop

Type

Jammer PIN

ServerConfig.JammerPin = '1234'

Four digits, in server/config.lua. It unlocks the SECURITY page of a jammer and is shown to the player who places one.

Still having trouble?

Open a ticket on our Discord. Our team answers around 15 hours a day.

Get help on Discord

On this page