engineUnloadVehicleAudioConfig
Client-side
Stops the calling resource's custom vehicle audio, restores GTA audio, and releases the global lease.
Syntax
bool engineUnloadVehicleAudioConfig()Returns
true when the calling resource owned and unloaded the configuration; false otherwise.
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
- Resource shutdown and client teardown run the same cleanup automatically. Commit fd9045ae added teardown guards for this path.
Where this comes from
SOURCECLuaEngineDefs.cppClient/mods/deathmatch/logic/luadefs/CLuaEngineDefs.cpp INTRODUCED / EXTENDED0418bcea7Read the commit and why the change was made
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How Resource-owned vehicle audio works →