Skip to content

engineLoadVehicleAudioConfig

Client-side

Available in Neon, not standard MTA

Acquires the client-wide vehicle-audio lease and loads Soundize-compatible model definitions from the calling resource.

Syntax

bool engineLoadVehicleAudioConfig(string path)

Arguments

pathstring

Non-empty path to a configuration file inside the calling resource.

Returns

true when the caller acquired the lease and the configuration contained at least one valid vehicle definition; false for an invalid or cross-resource path, another owner, a missing manager, or parse failure.

Ownership and lifecycle

One client resource owns the global vehicle-audio lease. Reloading replaces its definitions and restarts the lazy bank state; unloading, resource shutdown, or client teardown stops active audio, restores GTA's vehicle sound, and releases the lease.

Important behavior
  • FMOD and banks initialize lazily during the client pulse, so true does not prove that the runtime or every referenced bank can play.
  • The expected content root contains base/common.bank, base/common.strings.bank, and recursively indexed banks/*.bank files with same-stem .ini metadata.

Example

assert(engineLoadVehicleAudioConfig('vehicle-audio.conf'))

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →