Studios
Engine Soundshouse-3.jpg

Configuration

SoonEngine SoundsStandalone
PAGE 03 OF 06  ·  INSTALLATION → CONFIGURATION → EXAMPLESdocs.glitchstudios.dev
Browse docs

Everything is in config.lua.

By design any resource can call SetVehicleSound. To limit it, list the allowed resources in config.lua; a resource that is not listed gets false, 'not_allowed' (the caller is checked with GetInvokingResource):

AllowedResources = { 'my-mechanic', 'my-garage' },   -- empty = every resource may

Config.TestCommand switches the test command on or off. It is off by default; set it to true to try the demos. It also needs the ACE permission, so nobody can use it until you grant it:

add_ace group.admin command.enginesound allow

The command does nothing until that grant exists. Then sit in a vehicle and run /enginesound demo_zentorno, or /enginesound clear. Set it back to false when you are done testing. The server checks the permission again before it changes anything.

Configuration reference#

These settings come from the inspected package. Tables contain nested fields; edit them using the examples in the supplied file. Keep secrets in server-only configuration.

config.lua defaults#

Setting Default / editing guidance
Config.StateKey 'engineSound'
Config.RescanMs 3000
Config.ScanRadius 150.0
Config.AllowedResources Table; edit the supplied defaults.
Config.Text Table; edit the supplied defaults.
Config.TestCommand false
Config.TestCommandName 'enginesound'