Wild West Phonograph Script

:musical_note: Wild West Phonograph Script – Immersive Music for RedM

Experience the authentic sound of the 19th century!
This Phonograph Script adds fully synchronized, positional music sources to your RedM server. Players hear period-accurate songs when approaching the phonograph – and everything stays perfectly in sync.

:banjo: Unique RP Feature
Historically inspired by the first sound-recording devices, this script allows you to place phonographs in towns like Blackwater, Armadillo, or Tumbleweed. Players entering the radius hear the current song – even if it started before they arrived.

:notes: Custom Music Support
Add your own .mp3 songs (must be Public Domain or self-created). One example .mp3 is included.

How to add music:

  1. Place .mp3 files inside phonograph/html/music
  2. Define them in the config:
Config.MusicLibrary = {
  { file = "example.mp3", songvolume = 0.2, title = "Example Song 1", artist = "RealHartlMax", year = "2025" }
}

:white_check_mark: Uses [xsound] for realistic 3D audio.

:shopping_cart: Buy here: Tebex Store
20€ excl. Taxes


:de: Wild West Phonograph Script – Musik im Wilden Westen für RedM

Erlebe den Klang des 19. Jahrhunderts auf deinem RP-Server!
Mit diesem Phonographen-Script erhältst du ein lokal synchronisiertes Musiksystem, bei dem Spieler in der Nähe eines Phonographen authentische Songs hören – ganz im Stil des Wilden Westens.

:banjo: Immersives RP-Feature
Platziere Phonographen z. B. in Blackwater, Armadillo oder Tumbleweed. Musik startet nicht clientseitig, sondern bleibt global synchronisiert – für alle Spieler gleich.

:notes: Eigene Songs einbinden
Füge deine .mp3-Dateien unter phonograph/html/music ein.
In der config.lua kannst du die Songs definieren:

Config.MusicLibrary = {
  { file = "example.mp3", songvolume = 0.2, title = "Example Song 1", artist = "RealHartlMax", year = "2025" }
}

:warning: Achte darauf, nur Songs zu nutzen, für die du die Rechte hast (z. B. Public Domain oder Eigenproduktion).
Ein Beispiel-Song ist enthalten.

:shopping_cart: Jetzt kaufen: Tebex Store
20€ exkl. Steuern

Screenshot

Code is accessible No
Subscription-based No
Lines (approximately) Number of lines
Requirements xsound
Support Yes

UPDATE V1.1.0,
Zusätzliche Features (seit v1.1),

  • YouTube-Integration: Du kannst nun auch YouTube-Links zur Musikbibliothek hinzufügen.,
  • Prompt-Anzeige steuerbar: Der Prompt unten rechts in der UI lässt sich ein- und ausschalten.,
  • Namen konfigurierbar: Der Name des Phonographen (für die UI und im Prompt) ist direkt in der config.lua einstellbar.,
  • Intelligente Platzierung: Vor dem Spawnen eines Phonographen wird geprüft, ob an den Koordinaten bereits ein Gerät durch ein vorhandenes MLO existiert. Falls ja, wird kein Objekt gespawnt, sondern nur die UI-Funktion aktiviert.

Additional Features (new in v1.1),

  • YouTube integration: You can now add YouTube links to your music library.,
  • Toggle prompt display: You can enable/disable the prompt at the bottom right of the UI.,
  • Custom name configuration: Set the phonograph name for both the UI and the prompt directly in config.lua.,
  • Smart placement: Before spawning a phonograph object, the script checks if an MLO already provides one at those coordinates. If so, it only enables the UI interaction instead of spawning a new object.