Download Details

Discover download informations

Version: 1.0
Release Version: Stable

Credits

Authors & Contributors

Author(s):
  • Horn Notes Search (Author)

Added by

horngunnotes avatar
Offline horngunnotes
Offline
8 hours ago
Report Report download

Stats

Statistics about submission

Views: 3
Downloads: 1
Favorites: 0
Ratings Added: 0
Skill Level: Undefined
Feedback: 0
Shares: 0

Train Horn for Any Vehicle

Hold a key in any GTA 5 vehicle to play a looping multi-chime train horn. SHVDN v3 script, three variants, default key H.

Category: Downloads > Other
Submission Description

What this script does

This add-on gives every vehicle in Grand Theft Auto 5 a hold-to-sound train horn. Get in, press and hold the bound key, and a looping multi-chime blast plays until you release it. Leave the seat, get knocked out, or open the pause menu and the sound stops at once. The game's own horn, still on E by default, is not remapped.

Requirements

  • Grand Theft Auto 5 for PC.
  • ScriptHookV.
  • ScriptHookVDotNet v3 (ScriptHookVDotNet.asi and ScriptHookVDotNet3.dll).

The package is a C# source file compiled by ScriptHookVDotNet at launch, so Visual Studio is not required. The file must be named TrainHornAnyVehicle.3.cs: a bare .cs file uses the older v2 API, and the .3 suffix selects v3.

Install

  • Install ScriptHookV and ScriptHookVDotNet v3, and confirm a scripts folder exists next to GTA5.exe.
  • Copy the archive into that game folder so the files land at scripts/TrainHornAnyVehicle.3.cs, scripts/TrainHornAnyVehicle.ini, and scripts/TrainHorn/ for the three WAV files. Do not nest a second scripts folder inside scripts.
  • Launch the game. A subtitle names the key and variant, or the path if a WAV is missing.

Controls and ini options

Hold H while seated in a vehicle to sound the horn. That default avoids the stock horn on E. Edit scripts/TrainHornAnyVehicle.ini to change this.

  • Under [Controls], put a System.Windows.Forms.Keys value in HornKey, for example J, Y or NumPad0.
  • Under [Audio], pick the sample with HornVariant (1, 2 or 3). Any other number falls back to 2.

There is no volume key, because System.Media.SoundPlayer does not expose gain. Use the Windows volume mixer if the blast is too loud or too quiet; in-game SFX sliders do not apply.

Chime variants

Each file is a 44.1 kHz, 16-bit, mono, four-second loop, synthesized by the author from stacked, slightly detuned harmonics, with no recorded locomotive samples.

  • Variant 1, TwoChime. A low two-note blast on D3 and A3.
  • Variant 2, ThreeChime (default). A three-note major triad on D4, F-sharp 4 and A4.
  • Variant 3, FiveChime. A five-note chord on D-sharp 4, F-sharp 4, G-sharp 4, B4 and D-sharp 5.

Real locomotive horns

A working locomotive train horn is a row of bells on one air tank, each a different length, so one pull sounds a chord rather than a single note. In the United States, the Federal Railroad Administration and the railroad operating rules (often Rule 14(l)) describe the signal at a public grade crossing as two long blasts, one short blast and a final long blast, remembered as long-long-short-long. Off the railway, compact tanks and valves are built into complete units such as portable, battery powered train horn guns, a useful reference for how a multi-chime chord is produced. This script only plays a synthesized chord; it does not implement that crossing cadence.

Troubleshooting

  • No subtitle and no sound: confirm ScriptHookV and ScriptHookVDotNet v3 are installed, and that the file is named TrainHornAnyVehicle.3.cs, not TrainHornAnyVehicle.cs.
  • A subtitle names a missing WAV: check that the three files sit in scripts/TrainHorn/, not in a nested copy of the archive.
  • The key does nothing on foot: that is expected. The horn only plays in a vehicle.
  • The in-game SFX slider does nothing: use the Windows volume mixer for GTA V or for system sounds.
  • After editing the ini, restart the game, or reload scripts, so the new key and variant are read.

Changelog

  • 1.0 First public package. Hold-to-play train horn on any vehicle, default key H, with three synthesized variants in the ini. The sound stops on key release, leaving the vehicle, being downed, or opening the pause menu.
Added: 8 hours ago Modified: just now
Download DOWNLOAD Download
(1019.89 kb)
Add Add Feedback

You must be logged in to comment.

Ratings

Submission rating & score by users

?/10 [+]
You cannot assess yet!
Submission rating is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.

Interactions

Add to Favorite & more

You cannot favorite yet!
You like this download? You can add in your favorites list and return anytime from your list.

To add to favorite this download register or login.

Share

Send this submission on social media